Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   labview:what is the joystick axis? (http://www.chiefdelphi.com/forums/showthread.php?t=73907)

mcristina444 08-02-2009 12:23

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.

mcristina444 08-02-2009 12:52

Re: labview:what is the joystick axis?
 
mabe it is also called joystick axis output??

Greg McKaskle 08-02-2009 13:02

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

mcristina444 08-02-2009 13:06

Re: labview:what is the joystick axis?
 
so it isnot -158 to 158. or 0 to 256?

Greg McKaskle 08-02-2009 13:26

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