I was wondering what should be in the disabled.vi, just all motors, servos, etc. with output set to 0?
In Disabled.vi, all that is disabled are the outputs to your motors and actuators. Your sensors will still work. So, read and set the bias for the gyro, read Driver Station inputs and set up your initial conditions.
Ok thanks
Pretty much anything you think should be set to zero for safety sake.
Here’s the danger.
If your robot gets Disabled while moving drive base or mechanisms, will that be overridden immediately if you startup again in Autonomous or in Teleop?
Otherwise, when you Enable again the robot will continue trying to do what it was at the time it was Disabled, even though Autonomous will start over at the beginning again.
If you are following the Safety vi feeding schedule in both Autonomous and Teleop, then it probably doesn’t matter for drive motors, but it still might for secondary motors.
For most of us, Teleop will immediate set most motor outputs, so that might not be a problem.
Autonomous is the more dangerous issue. If you don’t bother to command a motor until later on in Autonomous, then you’ve got a problem.
P.S. There are also issues with feedback mechanisms that try harder and harder to force the robot somewhere, until suddenly the robot is Enabled again, but the feedback is by now commanding warp speed, because nothing slower was working while Disabled.
Okay that makes sense, thanks