Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   How would we program in a Logitech gamepad controller into LabVIEW? (http://www.chiefdelphi.com/forums/showthread.php?t=101479)

Team4014 29-01-2012 16:06

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.

mgurgol 29-01-2012 16:30

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.

apalrd 29-01-2012 17:20

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).

basicxman 29-01-2012 17:28

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.

mgurgol 30-01-2012 11:57

Re: How would we program in a Logitech gamepad controller into LabVIEW?
 
My apologies, I was thinking of the Dual Action.

Alan Anderson 30-01-2012 15:14

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.

2185Bilal 06-05-2012 11:44

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.

Alan Anderson 06-05-2012 12:05

Re: How would we program in a Logitech gamepad controller into LabVIEW?
 
Quote:

Originally Posted by 2185Bilal (Post 1167435)
I still dont understand how to use the two mini-joysticks on the F310 gamepad as a tank drive.

Axis 2 is the left Y axis. Axis 5 is the right Y axis. Use those as the inputs to a standard tank drive function.

2185Bilal 06-05-2012 12:32

Re: How would we program in a Logitech gamepad controller into LabVIEW?
 
Quote:

Originally Posted by Alan Anderson (Post 1167441)
Axis 2 is the left Y axis. Axis 5 is the right Y axis. Use those as the inputs to a standard tank drive function.

Ohh Thanks, but what was the other post u posted Jw:cool:


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