Drake-s-Submarine / system_controller

The embedded control system for the sub
0 stars 0 forks source link

Implement heartbeat #1

Open drakemain opened 1 year ago

drakemain commented 1 year ago

A heartbeat system needs to be implemented.

The controller should send out a "heartbeat" every so often, and the sub should expect it every n number of ticks. The command system can be utilized to receive heartbeats.

If a heartbeat is not received, it can be assumed that connection to the controller has been lost and the sub should execute an "emergency shutdown" where the propulsion system is turned off, the ballasts are emptied of water, and the lights are set to blink mode.