Closed eufrizz closed 2 years ago
This looks good, thanks for contributing. However, the PAC55xx's have a Windowed Watchdog Timer (WWDT) peripheral, which I think we should use to trigger an interrupt, instead of incrementing in software, as an error in the control loop may block Watchdog checks.
The watchdog sets the control mode back to idle when no CAN messages are received for a configurable amount of time. Enabled/disabled and timeout set via a CAN endpoint on 0x2A with the set_watchdog command.