Thread
:
Accessing Joystick Axes in Command-Based Robot
View Single Post
#
3
01-14-2015, 02:06 PM
Sparkyshires
Registered User
AKA: Michael Shires
FRC #0384 (Sparky)
Team Role: Programmer
Join Date: Jan 2012
Rookie Year: 2006
Location: Virginia
Posts: 226
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
Sparkyshires
View Public Profile
Visit Sparkyshires's homepage!
Find all posts by Sparkyshires
Find CD-Media Photos by Sparkyshires
Find CD-Media Papers by Sparkyshires