|
Re: Joystick Controls
The servos controlling the flight surfaces could just be set to the angle of the joystick.
Convert the joystick value to be in the same range as the servo, e.g., (joy+1)/2 = servo position
This is assuming you use 0 to 1 as the servo Set Position. If you use Set Angle instead, then convert the joystick to the angle range you defined or defaulted to in your Servo Open instead.
P.S.
Probably need to set max/min limits to the servo motion as well, so they don't try to move past mechanical limits.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 29-08-2012 at 13:22.
|