View Single Post
  #2   Spotlight this post!  
Unread 29-08-2012, 12:03
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote