Hi
Does anyone know how to reverse the output from APM to the servo (tricopter)? I
think that I can fix this by rotating the servo, but it might be easier to just
change something in the code, since the DIP switches are not used anymore.
**The APM is mounted correctly; it's only the output to the yaw servo that is reversed
i.e. stabilize corrections are reversed, but manual input from the transmitter is correct.**
Replies
Hey, yes you can reverse the yaw. Did you come right?
OK. Just for completeness, and to make it easier for others coming across this. This is the code fix:
#if FRAME_CONFIG == TRI_FRAME
// servo Yaw
g.rc_4.calc_pwm();
if(g.rc_4.get_reverse() == true)
{
APM_RC.OutputCh(CH_7, ( (-1 * (g.rc_4.radio_out - g.rc_4.radio_trim) ) + g.rc_4.radio_trim ) );
}
else
{
APM_RC.OutputCh(CH_7, g.rc_4.radio_out);
}
#endif
At line 831 in 2.0.38 in the ArduCopterMega.pde tab
This should let you reverse channel 4 in the planner by putting in a '-1' which will reverse the way the copter compensates with the yaw gyro.
Thank you Don for the fix!
but my 3Cs is still rotate yaw to left
I think, i must reverse the yaw gyro.
i use prop. CCW for left front and back. and CW for right front
any idea?
To keep things simple and if you have a digital servo, then you can program it for reverse operation.