"Error at edu.wpi.first.wpilibj.MotorSafety.check(MotorSafety.java:96): MecanumDrive... Output not updated often enough."

Hi all!

I’ve been attempting to run my code for quite a while but everytime I have been met with the same error listed up top. I believe it is because i am not resetting my motors to 0 at some point during the automous command. I used the ./gradlew simulateJava command to run the code, but haven’t had a chance to test this on a real robot.

Any help or advice would be great

Code:

Update

It Worked :smiley:

I think that it’s throwing that error because you’re only setting the motors once in initialize() and not in execute() in your AutonomousDrive command. I don’t think this error will stop motors from moving on a real robot, but I’m not sure.

Previous version of the code didn’t run autonomous (motors didn’t move) and I haven’t changed anything autonomous wise

do you think moving the setMotorSpeed motors to execute would fix this?
regardless I’ll try this tonight and update the post.

Thanks

Probably. The error is telling you that you aren’t setting your motors often enough

Thanks!!!

Will update post with resutls

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