Quote:
Originally Posted by DominickC
I looked under the example code. Seems the servo's have a 170 degree limit, whereas the joystick has a 360 degree range of motion. I guess that means a joystick is out as a controller.
|
Just to recap and correct the above comment:
The joysticks get function outputs a range of -1 to +1, floating point. So even though the joystick has a larger range of motion in degrees, it is scaled down by a factor of 127. It is then limited to within that range. (256 units)
Therefore you have to scale your joysticks between this range of 2 to a range of 170.