Help inverting the tilt servo

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
kataventos
Posts: 702
Joined: Sun Aug 28, 2011 8:14 pm
Contact:

Help inverting the tilt servo

Post by kataventos »

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
Last edited by kataventos on Tue Oct 11, 2011 10:28 pm, edited 2 times in total.

wilco1967
Posts: 156
Joined: Thu Aug 18, 2011 6:04 pm
Location: Winterswijk, Netherlands

Re: Help inverting the tilt servo

Post by wilco1967 »

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

kataventos
Posts: 702
Joined: Sun Aug 28, 2011 8:14 pm
Contact:

Re: Help inverting the tilt servo

Post by kataventos »

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

Post Reply