Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: Braking NXT Motors Using RobotC (http://www.chiefdelphi.com/forums/showthread.php?t=115042)

Kyle_5955 15-03-2013 22:25

[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:
Code:

bFloatDuringInactiveMotorPWM = false;
This is using RobotC version 3.51 with firmware 9.52.

Any help would be appreciated.

flameout 16-03-2013 14:53

Re: [FTC]: Braking NXT Motors Using RobotC
 
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.

Kyle_5955 25-03-2013 13:41

Re: [FTC]: Braking NXT Motors Using RobotC
 
Quote:

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. :)

Kyle_5955


All times are GMT -5. The time now is 06:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi