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

SERVOS - Please Help !!!
http://www.robotc.net/forums/viewtopic.php?f=53&t=3628
Page 1 of 1

Author:  dland82995 [ Fri Oct 21, 2011 4:43 pm ]
Post subject:  SERVOS - Please Help !!!

I have tried almost everything and I can't get the servos to work. I want them to move when I press a button on a controller. If anyone knows what I can try, please tell me.

-Thanks :bigthumb:

Author:  jbflot [ Fri Oct 21, 2011 5:04 pm ]
Post subject:  Re: SERVOS - Please Help !!!

Something like this? For future reference, post the code that you've tried so we can help point out what you're missing.

Code:
task main()
{
  while (1 == 1)
  {
    if(vexRT[Btn5D] == 1)
    {
      motor[port4] = 127;
    }
    if(vexRT[Btn5D] == 1)
    {
      motor[port4] = -127;
    }
  }
}

Author:  dland82995 [ Fri Oct 21, 2011 5:11 pm ]
Post subject:  Re: SERVOS - Please Help !!!

Thanks, I will try it out and see if it works.

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