View Single Post
  #1   Spotlight this post!  
Unread 17-02-2013, 13:48
nickpaterni's Avatar
nickpaterni nickpaterni is offline
Programming Mentor - Java
FRC #0217 (The Thunderchickens)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Mt Clemens, MI
Posts: 16
nickpaterni is an unknown quantity at this point
Re: Launching a command with a second thumbstick

Quote:
Originally Posted by BradAMiller View Post
It seems like you want a command that you schedule in teleopInit() that will just grab the joystick value and drive the motor. It can do that independently from everything else in your teleop code.
That does sound like what I'm looking for - do I just really put an if statement in the teleopInit() method that grabs the joystick value and launches a command from there? Does teleopInit() run continuously? I was under the impression that teleopInit() only ran once at the beginning of teleop.

Thanks

Nick
Reply With Quote