Differential drive error

I am getting this differential drive error when I enable auto and the robot doesn’t move:

DifferentialDrive Error: Output not updated often enough

this is my code: https://github.com/DreherFRC2815/2815_Rapid_React

Any help would be greatly appreciated
Thanks!

When using the WPILib DifferentialDrive class, you have to feed the watchdog every main loop iteration or this happens (the feature is intended to prevent runaway robots in the event that a novice programmer blocks the main loop). The drive methods do this for you during teleop, but you have to do it yourself during autonomous.

Alternatively, you can disable motor safety entirely (I recommend this approach).

Perfect! Thanks!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.