Client for communicating with Elodin database
Definition at line 535 of file combined_fsw_gui.py.
◆ __init__()
| combined_fsw_gui.ElodinClient.__init__ |
( |
| self, |
|
|
str | host = "127.0.0.1", |
|
|
int | port = 2240 ) |
◆ _create_header()
| bytes combined_fsw_gui.ElodinClient._create_header |
( |
| self, |
|
|
ElodinPacketType | packet_type, |
|
|
List[int] | packet_id, |
|
|
int
| payload_length ) |
|
protected |
◆ connect()
| bool combined_fsw_gui.ElodinClient.connect |
( |
| self | ) |
|
◆ disconnect()
| combined_fsw_gui.ElodinClient.disconnect |
( |
| self | ) |
|
◆ query_telemetry()
| List[Dict] combined_fsw_gui.ElodinClient.query_telemetry |
( |
| self, |
|
|
str | packet_type, |
|
|
Optional[float] | start_time = None, |
|
|
Optional[float] | end_time = None, |
|
|
int | limit = 100 ) |
◆ send_actuator_command()
| bool combined_fsw_gui.ElodinClient.send_actuator_command |
( |
| self, |
|
|
int | actuator_id, |
|
|
int | state ) |
◆ send_state_transition()
| bool combined_fsw_gui.ElodinClient.send_state_transition |
( |
| self, |
|
|
str | target_state ) |
◆ connected
| bool combined_fsw_gui.ElodinClient.connected = False |
◆ host
| combined_fsw_gui.ElodinClient.host = host |
◆ PACKET_IDS
| dict combined_fsw_gui.ElodinClient.PACKET_IDS |
Initial value:= {
"COMMAND": [0xFF, 0x01],
"PT_DATA": [0x01, 0x00],
"TC_DATA": [0x02, 0x00],
"IMU_DATA": [0x03, 0x00],
"ENGINE_STATUS": [0x10, 0x00],
"SYSTEM_HEALTH": [0x11, 0x00],
"VALVE_STATUS": [0x12, 0x00],
"STATE_MACHINE": [0x20, 0x00],
}
Definition at line 545 of file combined_fsw_gui.py.
◆ port
| combined_fsw_gui.ElodinClient.port = port |
◆ socket
| Optional[socket.socket] combined_fsw_gui.ElodinClient.socket = None |
The documentation for this class was generated from the following file: