Go to Post The most important piece of advice I can give is have someone assigned to pay attention to the batteries. You cannot imagine how many teams end up saying "I thought you were charging the batteries..." - RoboMom [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 09-01-2013, 10:29
Ido_Wolf's Avatar
Ido_Wolf Ido_Wolf is offline
LabVIEW Addict
AKA: Ido
FRC #2230 (General Angels)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Israel
Posts: 42
Ido_Wolf is an unknown quantity at this point
Re: Using a (Logitech) Controller?

To tell the difference easily if it ever happens to you again, just open your Driver Station and go to Setup with the controller connected to the PC.

You'll see a drag&drop list of all the joysticks connected (if a joystick doesn't appear, just push a button on it and the list would refresh). The first joystick in the list is the one you set to "USB 1 port" in your code's Begin.vi, the second is USB 2 etc.

You'll also notice that a controller would only take one slot in said list, while your 2 older joysticks would take one slot each. So, going by this logic, you'd need to use just one reference for the controller in LabVIEW like you said. Some joysticks and controllers (typically the vast majority of them other than Logitech Attack 3 or Xbox 360 controller) are completely messed up when it comes to axes/buttons ordering, you can either fix that by utilizing the appropriate drivers or making a small LabVIEW program with indicators for all the joystick's outputs and make a chart out of it.

Tip: In my experience, it's much easier to test your code with joysticks though, especially the ones that have winch/throttle axes as they're so flexible and you can assign certain tested variables to those extra axes and you get so many options with all these buttons on 2 joysticks. Plus, pulling the trigger feels MUCH more natural with a joystick to me when testing a shooting system, and the migration to a controller (in case the driver wants that) can be done very easily even without the robot between the end of the build season and the competition. But all in all it's your choice of course
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi