[FTC]: Braking NXT Motors Using RobotC

We are using an NXT motor to deploy our end-game ramp but we are finding that during the game the motor is turning allowing the line that is holding back our ramp to unwind. We have used the following code to set our NXT motor to brake by default, but it doesn’t work:

bFloatDuringInactiveMotorPWM = false;

This is using RobotC version 3.51 with firmware 9.52.

Any help would be appreciated.

Note: I am not familiar with the FTC setup, so I cannot tell you anything about your code – hopefully someone with FTC experience can chime in.

Motor braking won’t actually stop a motor. It will make it hard to turn the motor quickly, though. Try turning it by hand – if it’s hard to turn quickly, then braking is enabled.

If that is your issue, then you should probably output a slight command in the “retract line” direction, to prevent it from unwinding.

I hope this helps.

If that is your issue, then you should probably output a slight command in the “retract line” direction, to prevent it from unwinding.

We just tried this and it worked very well at a long driver practice meeting.
Thank you so much. :slight_smile:

Kyle_5955