Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/proto/ControlMessage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ message SystemState {
// SoarProto v1.3.2
SYS_HEARTBEAT_LOSS_HALF_WARNING = 5; // The system has lost heartbeat and 1/2 of the time to abort has passed
SYS_HEARTBEAT_LOST_ABORTING = 6; // The system has lost heartbeat and is aborting
SYS_WAIT = 7; // System has sent commands to DMB
SYS_RETRANSMIT = 8; // System timeout or receive nak from DMB
SYS_TIMEOUT = 9; // System does not receive ack in a fixed time window
SYS_SEND_NEXT_CMD = 10; // System receives ack or retransmit twice
}

State sys_state = 1; // The current state of the system
Expand Down
2 changes: 2 additions & 0 deletions backend/proto/CoreProto.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,6 @@ enum RocketState {
RS_ABORT = 10;
RS_TEST = 11;
RS_NONE = 12;
RS_LISTENING = 13;
RS_READY_FOR_CMD = 14;
}
16 changes: 13 additions & 3 deletions backend/proto/Python/CommandMessage_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 24 additions & 14 deletions backend/proto/Python/ControlMessage_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions backend/proto/Python/ControlMessage_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,21 @@ class SystemState(_message.Message):
SYS_NORMAL_OPERATION: _ClassVar[SystemState.State]
SYS_HEARTBEAT_LOSS_HALF_WARNING: _ClassVar[SystemState.State]
SYS_HEARTBEAT_LOST_ABORTING: _ClassVar[SystemState.State]
SYS_WAIT: _ClassVar[SystemState.State]
SYS_RETRANSMIT: _ClassVar[SystemState.State]
SYS_TIMEOUT: _ClassVar[SystemState.State]
SYS_SEND_NEXT_CMD: _ClassVar[SystemState.State]
SYS_INVALID: SystemState.State
SYS_BOOTUP_COMPLETE: SystemState.State
SYS_ASSERT_FAILURE_RESET: SystemState.State
SYS_UNCAUGHT_RESET: SystemState.State
SYS_NORMAL_OPERATION: SystemState.State
SYS_HEARTBEAT_LOSS_HALF_WARNING: SystemState.State
SYS_HEARTBEAT_LOST_ABORTING: SystemState.State
SYS_WAIT: SystemState.State
SYS_RETRANSMIT: SystemState.State
SYS_TIMEOUT: SystemState.State
SYS_SEND_NEXT_CMD: SystemState.State
SYS_STATE_FIELD_NUMBER: _ClassVar[int]
ROCKET_STATE_FIELD_NUMBER: _ClassVar[int]
sys_state: SystemState.State
Expand Down
20 changes: 15 additions & 5 deletions backend/proto/Python/CoreProto_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions backend/proto/Python/CoreProto_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class RocketState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
RS_ABORT: _ClassVar[RocketState]
RS_TEST: _ClassVar[RocketState]
RS_NONE: _ClassVar[RocketState]
RS_LISTENING: _ClassVar[RocketState]
RS_READY_FOR_CMD: _ClassVar[RocketState]
NODE_INVALID: Node
NODE_UNKNOWN: Node
NODE_ANY: Node
Expand All @@ -64,3 +66,5 @@ RS_RECOVERY: RocketState
RS_ABORT: RocketState
RS_TEST: RocketState
RS_NONE: RocketState
RS_LISTENING: RocketState
RS_READY_FOR_CMD: RocketState
16 changes: 13 additions & 3 deletions backend/proto/Python/TelemetryMessage_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions backend/src/CommControlMsg.puml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@startuml
[*] -right-> RCUInitialized : start
[*] -right-> RocketListening : start
RCUInitialized : RCU is on
RCUInitialized -right-> RCUWait : send first msg
RCUWait -up-> RCUTimeout : does not receive ack from rocket
RCUWait -up-> RCURetransmit : received nak from rocket
RCUWait -down-> RCUSendNextCMD : received ack from rocket
RCUWait -down-> RCUSendNextCMD : retransmit twice
RCUTimeout --> RCURetransmit
RCURetransmit --> RCUWait
RocketListening --> RocketInitialized : receive initialization sequence
RocketInitialized --> RocketReadyForCMD : send ack to rcu
@enduml
Loading