|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Require help programming a Z-Axis on a Logitech joystick
Our programming team wants to use the Z-axis on a Logitech joystick as the throttle for our shooter motor. Our problem is that we want the negative portion to be zero and the positive to represent full throttle. Sorry for not being clear - it's hard to convey what I mean over text. If you need any more details, feel free to ask.
Thanks -3868 ![]() |
|
#2
|
|||
|
|||
|
Re: Require help programming a Z-Axis on a Logitech joystick
Quote:
Last edited by agartner01 : 26-01-2013 at 12:31. |
|
#3
|
||||
|
||||
|
Re: Require help programming a Z-Axis on a Logitech joystick
If you are using Labview you could just add one, divide by 2 and if it goes the wrong way, multiply by -1.
|
|
#4
|
||||
|
||||
|
Re: Require help programming a Z-Axis on a Logitech joystick
Quote:
1) Dividing zero by something does not result in undefined behavior. Dividing something by zero does. 2) 0/.5 is not dividing by 2. It is dividing by 1/2, which is multiplying by 2. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|