Go to Post That settles it, no questions left. Water game. - Lil' Lavery [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-01-2010, 22:45
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Exclamation Logitech Dual Action (Axis Issue)

I'm hiving an issue with finding the axis numbers when programming. heres the flow; Joystick Get (Axes), unbundle by name, then we need 3 axes (we need to know what the X&Y axes are off of the right and left joysticks (possibilities; Axis 1(x), Axis 2(y), Axis 3 (throttle), Axis 4, Axis 5, Axis 6))

Note we are using Holonomic drive system (aka Mecanum wheels)

----------------
Now playing: Handsome Boy Modeling School - I've Been Thinking (Instrumental)
via FoxyTunes
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2010, 04:31
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,113
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: Logitech Dual Action (Axis Issue)

The X axis is, as you probably could guess, Axis 1(x). The Y axis is similarly obvious as Axis 2(y). I don't know what third axis you are looking for.

However, the Holonomic drive vi doesn't want Joystick axis inputs. It wants a magnitude (0 to 1), a direction in degrees (0 to 360), and a turn rate (-1 to 1). You can do the Cartesian to polar conversion math yourself, or you can use the "Re/Im to r/theta" complex number vi to turn X and Y axis numbers into a magnitude and direction in radians, then scale the direction appropriately.

An upcoming update to the WPI libraries is supposed to include a version of Holonomic drive that does take Joystick axis inputs more directly.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2010, 23:15
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Logitech Dual Action (Axis Issue)

Quote:
Originally Posted by Alan Anderson View Post
The X axis is, as you probably could guess, Axis 1(x). The Y axis is similarly obvious as Axis 2(y). I don't know what third axis you are looking for.

However, the Holonomic drive vi doesn't want Joystick axis inputs. It wants a magnitude (0 to 1), a direction in degrees (0 to 360), and a turn rate (-1 to 1). You can do the Cartesian to polar conversion math yourself, or you can use the "Re/Im to r/theta" complex number vi to turn X and Y axis numbers into a magnitude and direction in radians, then scale the direction appropriately.
Top part- I understand X axis is 1(x) & opposite with 2 but which joysticks are those or is it the d pad (a logitech dual action has 6 axes (dpad(2)+left joy.(2)+right joy.(2)=6))

Bottom Part- I already have that long conversion in a sub vi that works

----------------
Now playing: Stevie Ray Vaughan - Tin Pan Alley (aka Roughest Place In Town) (Live)
via FoxyTunes
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2010, 10:17
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,113
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: Logitech Dual Action (Axis Issue)

Quote:
Originally Posted by j.cole View Post
Top part- I understand X axis is 1(x) & opposite with 2 but which joysticks are those or is it the d pad (a logitech dual action has 6 axes (dpad(2)+left joy.(2)+right joy.(2)=6))
I don't understand the question. I think some sentence punctuation would go a long way towards helping me to read what you're asking.

But since you're using LabVIEW, you can get the answer yourself with very little work. It's really simple to connect the output of the Joystick Get vi to a front panel indicator, then just observe what responds when you move the various controls.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2010, 16:06
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: Logitech Dual Action (Axis Issue)

Yeah thats what I was just thinking about doing while walking home.

Thanks for all your help when i find out what they do ill post them here and that will be the end of it

(if someone would check over the code in the attachment i cant figure out whats going on (i know its set to usb 3 thats because i tried all others and 3 was set when i took the screen cap)
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	82
Size:	51.5 KB
ID:	8474  
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.

Last edited by j.cole : 02-02-2010 at 16:47. Reason: insert image
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2010, 21:16
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,113
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: Logitech Dual Action (Axis Issue)

LabVIEW can put whole bundles in the front panel at once. To make this vi, all I did was right-click on the Axes and Buttons terminals of the Joystick Get and choose Create Indicator.
Attached Thumbnails
Click image for larger version

Name:	sample.jpg
Views:	74
Size:	26.0 KB
ID:	8481  
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logitech Dual Action Gamepad 2010 Fix Nashua131 C/C++ 1 01-11-2010 23:09
logitech dual-action gamepad kamocat NI LabVIEW 6 19-01-2010 20:47
Logitech Dual-Action Gamepad - Axis Problem Mr. Lim Programming 5 16-01-2010 19:28
New class for Logitech Dual Action Gamepad Mike Soukup C/C++ 8 11-02-2009 20:08
Logitech NASCAR Wheel / Chicklet Safety Issue? Abrakadabra Control System 3 19-02-2008 00:51


All times are GMT -5. The time now is 22:44.

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