![]() |
Troubles on configuring a tank drive in LabView
We're trying to write code for a tank drive instead of arcade in LabView, and we can't figure out how. We'll be driving it with the Logitech Gamepad F310, and everything I've found so far has been for two separate joysticks with their own respective USB imports. Any help would be much appreciated. :)
|
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. |
Re: Troubles on configuring a tank drive in LabView
How would we configure tank drive? We tried to use the WPI Tank Drive subVI, but that still makes it behave in an 'arcade' mode. Do we have to write our own interface? Or is something not working correctly in the code we have loaded? We have tried many reimage/formats of the cRIO, and have spent almost 13-15 hours trying to figure out what's wrong.
|
Re: Troubles on configuring a tank drive in LabView
You should never have to reimage the cRIO unless a new image is made available.
If you replace the Arcade Drive with Tank Drive, and supply it the appropriate joystick values, it should work. Can you show us the code you're trying to use? |
| All times are GMT -5. The time now is 20:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi