Go to Post teams that REALLY deserve to win will find ways to overcome a marginal officiating decision. Also, teams that REALLY deserved to win will try not to put themselves in that position. - Chris Hibner [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-07-2010, 01:04
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Throttle Axis on Logitech Extreme 3D Pro

Greetings!

I'm trying to figure out the way to reference the throttle on the Logitech Extreme 3d Pro. We're using C++. I'm assuming that since this Joystick has 3 axis on the joystick (x, y, twist), the throttle (slider) and 12 buttons that the joystick initialization would be:

myJoystick = new Joystick(1, 4, 12);

Or, does the POV hat show up as a 5th axis?

Next, once I've got the Joystick instantiated, I should be able to read the axis as:

myJoystick->GetAxis(kThrottleAxis);

And it should return a value between 0 and 1 or -1 and 1?

If any of you have any sample code you'd care to part with, I'd sure appreciate it. Our main software developer is in a canoe up near Canada. So, I'm trying to figure out this stuff as quickly as I can.

Thanks,

Mike
  #2   Spotlight this post!  
Unread 15-07-2010, 01:10
rahilm's Avatar
rahilm rahilm is offline
Registered User
AKA: Rahil Mehta
FRC #0668 (The Apes of Wrath)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2007
Location: San Jose, CA
Posts: 116
rahilm has a spectacular aura aboutrahilm has a spectacular aura about
Re: Throttle Axis on Logitech Extreme 3D Pro

What we do is instead of creating a custom joystick object is to instead use the default joystick object. Using that, and the getRawAxis() function, with printf or cout, you can see which axis is being manipulated when you change the throttle.

Basically:

joystick *MyJoystick;

MyJoystick = new joystick();

printf("Axis 1: %f Axis 2: %f ....", MyJoystick->getRawAxis(1), MyJoystick->getRawAxis(2));
__________________
Team 668 - Apes of Wrath - 2008-2011
Team 668 - Apes of Wrath - 2011-Present (Mentor)

Last edited by rahilm : 15-07-2010 at 01:21.
  #3   Spotlight this post!  
Unread 15-07-2010, 01:29
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 333
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Throttle Axis on Logitech Extreme 3D Pro

Great! I'll give that a shot to see what the robot does!

Thanks,

Mike
  #4   Spotlight this post!  
Unread 01-02-2011, 16:17
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Throttle Axis on Logitech Extreme 3D Pro

Quote:
Originally Posted by taichichuan View Post
Greetings!

I'm trying to figure out the way to reference the throttle on the Logitech Extreme 3d Pro. We're using C++. I'm assuming that since this Joystick has 3 axis on the joystick (x, y, twist), the throttle (slider) and 12 buttons that the joystick initialization would be:

myJoystick = new Joystick(1, 4, 12);

Or, does the POV hat show up as a 5th axis?

Next, once I've got the Joystick instantiated, I should be able to read the axis as:

myJoystick->GetAxis(kThrottleAxis);

And it should return a value between 0 and 1 or -1 and 1?

If any of you have any sample code you'd care to part with, I'd sure appreciate it. Our main software developer is in a canoe up near Canada. So, I'm trying to figure out this stuff as quickly as I can.

Thanks,

Mike

Do anyone know how to program the hat switch? is it a axis or is it a button?
im using java.
  #5   Spotlight this post!  
Unread 01-02-2011, 16:32
Nadav Zingerman Nadav Zingerman is offline
Registered User
FRC #2230
Team Role: Programmer
 
Join Date: Jul 2009
Rookie Year: 2009
Location: Israel
Posts: 90
Nadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to beholdNadav Zingerman is a splendid one to behold
Re: Throttle Axis on Logitech Extreme 3D Pro

Quote:
Originally Posted by sand500 View Post


Do anyone know how to program the hat switch? is it a axis or is it a button?
im using java.
It's axes. I think it's 5&6.

Last edited by Nadav Zingerman : 01-02-2011 at 16:34.
Closed Thread


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
FRC Joystick throttle problems cvitullo C/C++ 6 14-04-2010 20:46
Logitech Dual Action (Axis Issue) j.cole NI LabVIEW 5 02-02-2010 21:16
Logitech Dual-Action Gamepad - Axis Problem Mr. Lim Programming 5 16-01-2010 19:28
logitech extreme 3d pro joystick mahmosh Control System 4 24-02-2009 08:36
Extreme 3D pro support? FreakyAntelope Control System 5 01-02-2007 12:30


All times are GMT -5. The time now is 23:54.

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