mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[wpilib] Improve MotorSafety documentation (NFC) (#4120)
Remove OBE RobotDrive porting guide from MecanumDrive
This commit is contained in:
@@ -14,8 +14,11 @@
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
* This base class runs a watchdog timer and calls the subclass's StopMotor()
|
||||
* function if the timeout expires.
|
||||
* The Motor Safety feature acts as a watchdog timer for an individual motor. It
|
||||
* operates by maintaining a timer that tracks how long it has been since the
|
||||
* feed() method has been called for that actuator. Code in the Driver Station
|
||||
* class initiates a comparison of these timers to the timeout values for any
|
||||
* actuator with safety enabled every 5 received packets (100ms nominal).
|
||||
*
|
||||
* The subclass should call Feed() whenever the motor value is updated.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user