View Full Version : labview:what is the joystick axis?
mcristina444
08-02-2009, 12:23
in labview i want to have the robot control speed not going in a linear line is want to to have more control at a lower speed. so i came up with the equasion : x axis squared/max input.. also i would do this same equasion with the y axis. the only thing that i cant find is the max input from the controller. is it 256 or 128? please help.
mcristina444
08-02-2009, 12:52
mabe it is also called joystick axis output??
Greg McKaskle
08-02-2009, 13:02
It looks to me like the numbers are scaled between -1 and 1. If I remember right, the Y axis may seem backwards at first. pushing forwards is negative, pulling back is positive. HID must have been defined by a pilot.
Greg McKaskle
mcristina444
08-02-2009, 13:06
so it isnot -158 to 158. or 0 to 256?
Greg McKaskle
08-02-2009, 13:26
Here is the full story. The values returned to the OS according to the HID standard are 16 bits, or -32k to 32k. To be send from DS to robot, they were scaled to -128 to 127.
Finally, to simplify the math and make things more consistent, most values to and from most I/O on the robot is in the range of -1 to 1 or 0 to 1. They are floating point numbers so that when the joystick is pushed half way it reads half, or 0.5. If you want it scaled back to any other range, just multiply.
Greg McKaskle
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.