Log in

View Full Version : Joystick Controls of Axis Camera


xSpongeX
19-01-2010, 21:54
I added the Joystick code from the joystick input example in the servo camera example to control the servo camera via the joystick.

But, the example has 2 front panel controls which I am replacing with the output s of the "Get Joystick Axis" SubVI's.

How do I scale the output values from 0 to 170?

Thanks

Alan Anderson
19-01-2010, 23:05
Use math functions. To turn a value between -1 and +1 to a value between 0 and 170, add one then multiply by 85.