docs: scaffold polisher-control foundation
This commit is contained in:
30
host/polisher_control/protocol.py
Normal file
30
host/polisher_control/protocol.py
Normal file
@@ -0,0 +1,30 @@
|
||||
from enum import IntEnum
|
||||
|
||||
|
||||
class MessageType(IntEnum):
|
||||
HEARTBEAT = 1
|
||||
MANUAL_START = 2
|
||||
SETPOINT = 3
|
||||
MANUAL_STOP = 4
|
||||
SEGMENT_START = 5
|
||||
PAUSE = 6
|
||||
RESUME = 7
|
||||
ABORT = 8
|
||||
ESTOP = 9
|
||||
ACK = 100
|
||||
NACK = 101
|
||||
TELEMETRY = 102
|
||||
EVENT = 103
|
||||
SEGMENT_DONE = 104
|
||||
ABORT_COMPLETE = 105
|
||||
|
||||
|
||||
class NackReason(IntEnum):
|
||||
NONE = 0
|
||||
BAD_CRC = 1
|
||||
BAD_VERSION = 2
|
||||
ILLEGAL_TRANSITION = 3
|
||||
GEOMETRY_NOT_VALIDATED = 4
|
||||
SAFETY_INTERLOCK_ACTIVE = 5
|
||||
UNSUPPORTED_COMMAND = 6
|
||||
VALUE_OUT_OF_RANGE = 7
|
||||
Reference in New Issue
Block a user