ROBOTC.net forums
http://www.robotc.net/forums/

Help!!!How to program the motor to turn only in some degree?
http://www.robotc.net/forums/viewtopic.php?f=52&t=10272
Page 1 of 1

Author:  sdrobotics [ Thu Jan 15, 2015 8:24 pm ]
Post subject:  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?

Author:  BisonBot5209 [ Fri Jan 16, 2015 9:51 am ]
Post subject:  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?

Author:  cookthebook [ Fri Jan 16, 2015 3:44 pm ]
Post subject:  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.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/