View Single Post
  #3   Spotlight this post!  
Unread 01-14-2015, 02:06 PM
Sparkyshires Sparkyshires is offline
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
Sparkyshires is an unknown quantity at this point
Re: Accessing Joystick Axes in Command-Based Robot

so to do that, does your command have to have a require line for oi?
like this? :

Code:
Requires(Robot::driveTrain);
Requires(Robot::oi);
EDIT: nevermind, I got it. You have to call it from Robot, and it acts as a pointer. Thanks!
__________________
"Measure with a micrometer, mark with chalk, cut with an axe."

Last edited by Sparkyshires : 01-14-2015 at 02:11 PM. Reason: updating
Reply With Quote