View Full Version : [FTC]: Continous Servos
loganzip
02-12-2014, 18:43
How do you program a continuous servo in Robot C?
wgardner
02-12-2014, 19:05
255 is full power in one direction, 0 is full power in the other direction. Somewhere around 127 is stopped. 127 is supposed to be stopped, but we recently found that some of our servos stopped with a setting around 133.
In other words:
servo[myContinuousServo]=255; // full power one way
servo[myContinuousServo]=0; // full power the other way
servo[myContinuousServo]=127; // stopped. might be a different # close to 127
Also make sure that you've configured the servos as Continuous Servos in the Motors and Sensors Setup.
BTW, a cheatsheet for RobotC teleop programming is available here (https://docs.google.com/file/d/0B2cJCen87M0nOTNEVE92S21wVW8/edit).
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.