DAQ System fully shuts off when it receives a SIGINT (ie. from a ctrl+c) or a SIGTERM. It does the following:
Power down IMU
Disconnect from GPS
Disconnect from MQTT
MQTT command to do the shutdown is implemented. Pause over MQTT is also implemented and does the following:
Power down IMU
Stop polling ADC
Stop polling GPS
Due to no GPS hardware, that was not tested. Otherwise, rest of the functionalities are tested, there is a testing script in utils to send the commands over MQTT. The script and the DAQ both connect to a cloud MQTT broker I set up such that anyone can test with MQTT at any time.
DAQ System fully shuts off when it receives a SIGINT (ie. from a ctrl+c) or a SIGTERM. It does the following:
MQTT command to do the shutdown is implemented. Pause over MQTT is also implemented and does the following:
Due to no GPS hardware, that was not tested. Otherwise, rest of the functionalities are tested, there is a testing script in utils to send the commands over MQTT. The script and the DAQ both connect to a cloud MQTT broker I set up such that anyone can test with MQTT at any time.