tim-balloon / TIMflight

Flight MCP repo
0 stars 0 forks source link

Re-enable software watchdog on FCs #121

Open evanmayer opened 2 months ago

evanmayer commented 2 months ago

Task

We need to re-enable the software watchdog on both flight computers in order to trigger reboots on flight software freezes.

Acceptance

If flight software fails to tickle the watchdog within 5s (SOFTWARE_WATCHDOG_TIMEOUT), the flight computer shall reboot.

Details

NOTE: These instructions shall not be executed until motor tuning is completed and TIM is basically flight ready, since in theory flight software being run on boot could allow motors to move.

  1. Enable flight software service (sudo systemctl enable flight_software.service), in order to prevent a reboot loop
  2. Pop off the FC enclosure lid
  3. Connect monitor to FC HDMI
  4. Remove front panel hardware watchdog USB connector
  5. Connect keyboard to USB
  6. Reboot PC
  7. Mash del key to enter BIOS
  8. Refer to the disablement instructions in the new flight computer instructions, and instead enable the watchdog.
  9. Close up FC and reconnect hardware watchdog USB
  10. Repeat for other FC
shubhagrawal30 commented 1 month ago

wontfix before FTS flight: needs to be tested more and halt_fcN should be a good enough override for right now