View Single Post
  #5   Spotlight this post!  
Unread 02-02-2012, 09:02
inkspell4's Avatar
inkspell4 inkspell4 is offline
Registered User
FRC #3650 (Robo Raptors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Maryland
Posts: 326
inkspell4 will become famous soon enough
Re: Servo responding to button

i was thinking of something like

void operatorcontrol()
{
while(isOperatorControl)
{
double degree;
if(button is pressed)
{
degree incremented up
}
update servo
}
...

do you have code that works for a joystick button and code that works for a servo
if so could you post it
or even if you have the exact code we need

even if you do not any help will be appreciated


THANKS

Also the Previous assumption is correct
__________________
Chesapeake Regional : 2013, 2012, 2011
Rookie Year: 2011
2013 RoboRaptors Team 3650 Programming Team Captain
Team Website : http://www.roboraptorsfrcteam3650.com/index.html
_____________________________________________
Reply With Quote