Joystick Controls of Axis Camera

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

Use math functions. To turn a value between -1 and +1 to a value between 0 and 170, add one then multiply by 85.