DifferentialDrive out not updated enough error when running pathweaver autonomous

DifferentialDrive out not updated enough error when running pathweaver autonomous. Does anyone know what causes this error

As I recall, this error will generally show up if your DifferentialDrive subsystem is not updated with a value on every iteration of code. This may happen if you are finishing your auton via pathweaver then not setting the motors to any value. To prevent them from accidentally staying powered, it will set the motors to 0 if no value has been supplied for however long the timeout it.

Check to see if at any point it is possible for no value to be applied to any motors on your differential drive.

As others noted already, the trajectory driving does not update your motor with commands all the time. That means make sure to turn off safety both on the motors and the chassis object, like DifferentialDrive.

You have the option to turn off safety, which then must be re-enabled after your auto command is done.

Alternatively, in the execute method of the command (or the periodic method in the subsystem) you can just call feed() on your safety enabled objects to keep it up and running.

1 Like