![]() |
How would we program in a Logitech gamepad controller into LabVIEW?
We want to be able to use the Logitech F310 controller to drive our robot with tank drive (using the Y axis of each joystick on the controller to run their respective drive motors on each side of the robot), and we can't figure out how. All of the things we've found online are for the Attack controllers, and use two USB ports rather than 1. Any help would be much appreciated.
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
In Labview, the programmers should use Unbundle By Name for the axes wire of the Get Joystick vi, or use the Get Axis vi and use axis 2 and axis 4, these are the Y axis of the two main joysticks.
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
The Logitech F310 has the following axis mapping on a single USB port: (this is exactly the same as the Xbox 360 gamepad, for reference)
Axis 1 - Left X Axis 2 - Left Y Axis 3 - Sum of L2 and R2 triggers - One is positive, the other is negative, both or none is 0 Axis 4 - Right X Axis 5 - Right Y Axis 6 - D-Pad Horizontal - One direction is +1, the other -1. You can't read the vertical axis Please note that mgurgol is not correct entirely, axis 4 is NOT right Y on the F310 (it is on the DualAction). |
Re: How would we program in a Logitech gamepad controller into LabVIEW?
Our team used this last year during two events without any issues:
http://www.chiefdelphi.com/forums/sh...ad.php?t=90022 Major thanks to Alexander Meyer on team 2358. |
Re: How would we program in a Logitech gamepad controller into LabVIEW?
My apologies, I was thinking of the Dual Action.
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
1 Attachment(s)
In LabVIEW, it's very easy to see which controls on the gamepad are associated with the various buttons and axes. Just attach indicators to the existing Joystick Get in Teleop. Run the Robot Main vi and look at the Teleop front panel as you play with the joystick.
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
I still dont understand how to use the two mini-joysticks on the F310 gamepad as a tank drive.
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
Quote:
|
Re: How would we program in a Logitech gamepad controller into LabVIEW?
Quote:
|
| All times are GMT -5. The time now is 01:35. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi