Go to Post I watch students push themselves beyond their limits every year only to realize they have yet to find their true limits. - JesseK [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2012, 01:09
tctc's Avatar
tctc tctc is offline
Registered User
AKA: Dr. K, Make it so, Karel, Mr. Karl, Karl
FRC #2479 (The Phoenix)
Team Role: Coach
 
Join Date: Feb 2012
Rookie Year: 2003
Location: MN
Posts: 15
tctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of light
programming the Logitech game controller

We are wanting to use the Logitech game controller (same as used in FTC) as our drive controller and one of the standard joysticks for the actuator. We are having trouble getting the Logitech controller to work. The attached code shows generally how things are set up (we haven't added the code for the actuator yet). We have tried every combination of the axes from the Joystick Get VI, but they all have the same result (which is kind of odd). I don't have the specifics of the results with me at the moment, but essentially the left joystick y axis will control one motor, and the left joystick x axis will control the other motor. The right joystick does not do anything. Ideally we'd like to have the left joystick y axis control one motor and the right joystick y axis control the other motor. Any thoughts on what we could be doing wrong? Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	joystick_labview_code.png
Views:	33
Size:	160.7 KB
ID:	11845  
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 01:39
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: programming the Logitech game controller

It took us most of an hour messing with our new Logitech controller before I remembered that silly little X/D switch on the bottom. In X mode it doesn't work well with the Driver Station, providing only a few axes and one of the sticks was completely useless. In D mode it works pretty much the same as we're used to for gamepads, except the right stick axes seemed swapped.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2012, 18:45
tctc's Avatar
tctc tctc is offline
Registered User
AKA: Dr. K, Make it so, Karel, Mr. Karl, Karl
FRC #2479 (The Phoenix)
Team Role: Coach
 
Join Date: Feb 2012
Rookie Year: 2003
Location: MN
Posts: 15
tctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of lighttctc is a glorious beacon of light
Re: programming the Logitech game controller

Thanks for the response. We identified the problem today. We renamed the Teleop VI to something team-specific and didn't update the Robot Main VI with the new Teleop VI. We thought that replacing it in the Project Explorer would be sufficient, but apparently not. Anyway, we're up an running with it. Woohoo!
Reply With Quote
Reply


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 11:14.

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