|
Re: Troubles on configuring a tank drive in LabView
All you're doing is taking two joystick axes and setting a Tank Drive with them.
The Tank Drive expects two numbers, left and right motor power.
A gamepad shows up as a single joystick - Take all of the code to read a single joystick, and read two axes from it - On an F310, you would want Axis 2 (Y) for the Left Y and Axis 5 for the Right Y.
FYI, an F310 is exactly like a 360 controller in the FRC libraries - All of the buttons and axes on the F310 are exactly the same as on the 360, from my experience last year.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor
"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
|