|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Functions | |
| bytes | build_board_heartbeat (int _board_type, int board_id, int ts_ms) |
| bytes | build_self_test_packet (list[tuple[int, int]] sensor_results) |
| int | main () |
Variables | |
| int | PACKET_BOARD_HEARTBEAT = 1 |
| int | PACKET_SENSOR_CONFIG = 5 |
| int | PACKET_SELF_TEST = 12 |
| int | BOARD_TYPE_PT = 1 |
| int | BOARD_STATE_SETUP = 1 |
| int | ENGINE_SAFE = 0 |
| int | DIABLO_VERSION = 0 |
Integration-only simulated board: SETUP heartbeats → wait for SENSOR_CONFIG (type 5) → send SELF_TEST. Matches Diablo PacketHeader (6B) + SelfTestPacket + N×SelfTestResult (DAQv2-Comms).
| bytes board_startup_sim.build_board_heartbeat | ( | int | _board_type, |
| int | board_id, | ||
| int | ts_ms ) |
DAQv2 BoardHeartbeatPacket: 32B hash + board_id + engine_state + board_state.
Definition at line 25 of file board_startup_sim.py.
Referenced by main().
| bytes board_startup_sim.build_self_test_packet | ( | list[tuple[int, int]] | sensor_results | ) |
sensor_results: list of (sensor_id, result) result 1=pass 0=fail.
Definition at line 37 of file board_startup_sim.py.
References min, and time.time().
Referenced by main().
| int board_startup_sim.main | ( | ) |
Definition at line 50 of file board_startup_sim.py.
References build_board_heartbeat(), build_self_test_packet(), main(), and time.time().
Referenced by main().
| int board_startup_sim.BOARD_STATE_SETUP = 1 |
Definition at line 20 of file board_startup_sim.py.
| int board_startup_sim.BOARD_TYPE_PT = 1 |
Definition at line 19 of file board_startup_sim.py.
| int board_startup_sim.DIABLO_VERSION = 0 |
Definition at line 22 of file board_startup_sim.py.
| int board_startup_sim.ENGINE_SAFE = 0 |
Definition at line 21 of file board_startup_sim.py.
| int board_startup_sim.PACKET_BOARD_HEARTBEAT = 1 |
Definition at line 16 of file board_startup_sim.py.
| int board_startup_sim.PACKET_SELF_TEST = 12 |
Definition at line 18 of file board_startup_sim.py.
| int board_startup_sim.PACKET_SENSOR_CONFIG = 5 |
Definition at line 17 of file board_startup_sim.py.