Go to Post Congratulations to team 341, your work is nothing short of what I want to do when I grow up. - kjolana1124 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 20-01-2013, 19:39
kittylan kittylan is offline
Registered User
FRC #1967 (Janksters)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: San Jose, CA
Posts: 1
kittylan is on a distinguished road
Programming Logitech Joystick--how to access right thumbstick?

Hi, we are trying to program the Logitech joystick

However, the methods stick.GetX or stick.GetY only access the left thumbstick--we cannot retrieve the values for the right thumbstick. (FYI, thumbsticks are the twirling little sticks on the game controller...)

How do we use the Get methods to find values for the second thumbstick? Our team is hoping to use tankdrive this year... Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2013, 19:44
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Programming Logitech Joystick--how to access right thumbstick?

You'll need to use getRawAxis to access the other axes of the stick. I don't know the exact mapping of your gamepad so you'll ant to use a dashboard or console output to find out the axes you need to use.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2013, 02:45
mprasolov's Avatar
mprasolov mprasolov is offline
Jack of all trades
AKA: Misha Prasolov
FRC #2823 (The Automatons)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Saint Paul, MN
Posts: 36
mprasolov is an unknown quantity at this point
Re: Programming Logitech Joystick--how to access right thumbstick?

You can find the axes (if you're using Windows) by going into Control Panel, Devices and Printers, and right-click on the Joystick. Then, go into properties and you should see the info there. If you can't see some data, begin a calibration and look at the data there, just cancel before it saves the calibration profile.

If there are only 3 axes, you can just use stick.GetZ too, unless you have more than that. In that case, follow kittylan's instruction.

Hope this helps!
__________________
Check out our website!

http://hprobotics.org
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 13:26.

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