|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Axis 3 on joystick
I am trying to use the dial on the bottom of the joystick, and I know that it's Axis 3. The problem is that the bottom of the dial (all the way down) is -1 and the top is 1. I want to make the bottom 0 and the top 1. Is there any way I can do that.
I have tried Absolute Value, but that makes the bottom 1 and the top 1 (the middle 0). Is there a way to recalibrate the axis in the code? |
|
#2
|
||||
|
||||
|
Re: Axis 3 on joystick
You could simply add 1 to the output and then divide that value by 2.
- Austin |
|
#3
|
|||
|
|||
|
Re: Axis 3 on joystick
that's all I need. I knew it wsa something simple, but I couldn't think of it right then (what I really hate is when that happens on my math test)
|
|
#4
|
||||
|
||||
|
Re: Axis 3 on joystick
Haha I'm with you there.
... That happens way more often then I'd like..- Austin |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reversing the joystick axis | JBotAlan | Programming | 3 | 09-02-2005 19:47 |
| Tri-axis Analog Joystick | KVermilion | Control System | 5 | 19-01-2005 00:24 |
| pwm outputs vs. joystick y-axis | stephenthe1 | Programming | 4 | 01-12-2004 17:29 |
| Inverting Y axis on joystick | FormatteD_C | Programming | 7 | 24-02-2004 16:56 |
| switching joystick axis????? | team222badbrad | Technical Discussion | 9 | 16-01-2002 23:07 |