Closed filippobrizzi closed 3 weeks ago
Create a watchdog timer.
The timer call the given callback every period time. A function pat() is also provided to implement a dead-man switch.
period
pat()
Example use case: In a motor controller, if no command is received within the time period, stop the motors.
Description
Create a watchdog timer.
The timer call the given callback every
period
time. A functionpat()
is also provided to implement a dead-man switch.Example use case: In a motor controller, if no command is received within the time period, stop the motors.