Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Joystick Controls of Axis Camera (http://www.chiefdelphi.com/forums/showthread.php?t=80632)

xSpongeX 19-01-2010 21:54

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

Alan Anderson 19-01-2010 23:05

Re: Joystick Controls of Axis Camera
 
Use math functions. To turn a value between -1 and +1 to a value between 0 and 170, add one then multiply by 85.


All times are GMT -5. The time now is 01:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi