Hi, I was trying to change de servo tilt value on Arduino 0022 to negative without success! How do I invert the servo movement?
Thanks for helping,
Henrique
Help inverting the tilt servo
-
- Posts: 702
- Joined: Sun Aug 28, 2011 8:14 pm
- Contact:
Help inverting the tilt servo
Last edited by kataventos on Tue Oct 11, 2011 10:28 pm, edited 2 times in total.
Re: Help inverting the tilt servo
Do you mean the yaw servo (on the tail), on a tri ?
Change the following line in config.h (change +1 into -1)
#define YAW_DIRECTION 1 // if you want to reverse the yaw correction direction
to
#define YAW_DIRECTION -1 // if you want to reverse the yaw correction direction
If you mean the camera tilt servo, change the number in below line to a negative value
example
#define TILT_ROLL_PROP -10
Change the following line in config.h (change +1 into -1)
#define YAW_DIRECTION 1 // if you want to reverse the yaw correction direction
to
#define YAW_DIRECTION -1 // if you want to reverse the yaw correction direction
If you mean the camera tilt servo, change the number in below line to a negative value
example
#define TILT_ROLL_PROP -10
-
- Posts: 702
- Joined: Sun Aug 28, 2011 8:14 pm
- Contact:
Re: Help inverting the tilt servo
Thanks for your help wilco,
sorry, camera tilt I tryed #define TILT_ROLL_PROP -10 and - 10 the servo moves in the same direction, I will try again and update.
Update: Ok... so silly I am, this worked immediatly but when I was testing, had the camera stand on the oposite direction I didn´t need to change to negative value, this explains that work with -10 and - 10.
Thanks again,
Henrique
sorry, camera tilt I tryed #define TILT_ROLL_PROP -10 and - 10 the servo moves in the same direction, I will try again and update.
Update: Ok... so silly I am, this worked immediatly but when I was testing, had the camera stand on the oposite direction I didn´t need to change to negative value, this explains that work with -10 and - 10.
Thanks again,
Henrique