![]() |
labview:what is the joystick axis?
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.
|
Re: labview:what is the joystick axis?
mabe it is also called joystick axis output??
|
Re: labview:what is the joystick axis?
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 |
Re: labview:what is the joystick axis?
so it isnot -158 to 158. or 0 to 256?
|
Re: labview:what is the joystick axis?
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 |
| All times are GMT -5. The time now is 10:40. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi