View unanswered posts | View active topics It is currently Thu Dec 18, 2014 4:18 pm






Reply to topic  [ 2 posts ] 
Programming Continuous Rotation Servos. 
Author Message
Rookie

Joined: Mon Dec 01, 2014 3:58 pm
Posts: 1
Post Programming Continuous Rotation Servos.
Hey everyone my team and I have been having having trouble figuring out how to program continuous rotation servos in our tele-op program. we want to beable to press a button (say button 1) and have the servo spin in one direction and then stop when the button is no longer being pressed. I have looked EVERY where on the internet or information on this but have yet to find something usefull! please help if you can! Thanks


Mon Dec 01, 2014 4:02 pm
Profile
Professor
User avatar

Joined: Sat Aug 31, 2013 9:15 am
Posts: 212
Post Re: Programming Continuous Rotation Servos.
Continuous rotation servos don't seem to be very well documented on their use. My team had the same problems our first year, when we tried to use them. The coding is actually pretty simple, once you know how it works. A value of 0-126 makes the servo turn "backwards" (counter-clockwise I do believe). A value of 127 makes it stationary. And 128-255 make it rotate "forwards" (clockwise, if I remember correctly). So, the usage would be like:
Code:
// "Go" button is pressed
servo[servo1] = 255; // Full steam ahead!
// "Stop" button is pressed
servo[servo1] = 127; // STOP!!!

_________________
FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at http://bluechariotsoffire.com/.


Mon Dec 01, 2014 9:46 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.