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






Reply to topic  [ 2 posts ] 
Servo Initialization 
Author Message
Rookie

Joined: Sat Nov 12, 2011 6:44 pm
Posts: 3
Post Servo Initialization
When the program starts, the servos often seem to go to some random location privor to resetting to the specified value. The situation is very stranger because the second time the program is started, the unwanted servo motion may or may not happen. I would like to specify the initial value and skip the other motions. Is there some way to stop the servos from doing this unwanted random motion? :-(


Fri Feb 08, 2013 9:06 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 619
Post Re: Servo Initialization
Unfortunately, the servo initialization is handled by the HiTechnic Servo Controller and there is no way for ROBOTC to prevent it from happening; however, you the pre_auton function is designed specifically for this reason; you can set your servo values to whatever you need them to be before the autonomous section starts, as long as the robot still conforms to the sizing rules (pre_auton cannot be used to move the robot outside of its legal dimensions as far as I know; you may want to double check this in the FTC rulebook).

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Mon Feb 18, 2013 10:57 am
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.