Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Throttle Axis on Logitech Extreme 3D Pro (http://www.chiefdelphi.com/forums/showthread.php?t=86307)

taichichuan 15-07-2010 01:04

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

rahilm 15-07-2010 01:10

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));

taichichuan 15-07-2010 01:29

Re: Throttle Axis on Logitech Extreme 3D Pro
 
Great! I'll give that a shot to see what the robot does!

Thanks,

Mike

sand500 01-02-2011 16:17

Re: Throttle Axis on Logitech Extreme 3D Pro
 
Quote:

Originally Posted by taichichuan (Post 969044)
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.

Nadav Zingerman 01-02-2011 16:32

Re: Throttle Axis on Logitech Extreme 3D Pro
 
Quote:

Originally Posted by sand500 (Post 1013495)


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.


All times are GMT -5. The time now is 13:07.

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