View unanswered posts | View active topics It is currently Sun Aug 02, 2015 12:23 am






Reply to topic  [ 3 posts ] 
Help!!!How to program the motor to turn only in some degree? 
Author Message
Rookie

Joined: Thu Jan 15, 2015 8:12 pm
Posts: 3
Post Help!!!How to program the motor to turn only in some degree?
Hi. we are trying to program a 6th moter to turn only 30 degrees, then turn back to its original position. We have never used a button on the joystick to do this. Can anyone give us the full code for this?


Thu Jan 15, 2015 8:24 pm
Profile
Rookie

Joined: Sun Jan 04, 2015 8:47 pm
Posts: 23
Post Re: Help!!!How to program the motor to turn only in some deg
You could use encoders to do this - does your 6th motor have an encoder on it?


Fri Jan 16, 2015 9:51 am
Profile
Rookie
User avatar

Joined: Wed Jan 09, 2013 11:48 pm
Posts: 46
Location: Saint Paul, MN
Post Re: Help!!!How to program the motor to turn only in some deg
If you have an encoder, you could use PID control to ensure the motor goes to the same spot every time. Look in the help menu on how to use the target function for PID control, it's not terribly hard and pretty accurate.

_________________
Head Programmer FTC Team 6699, Tempest

Code:
<Life>
   Fun
</Life>


Fri Jan 16, 2015 3:44 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 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.