ArduPlane yaw control

190 views
Skip to first unread message

Menno Hochstenbach

unread,
May 4, 2014, 6:15:59 AM5/4/14
to drones-...@googlegroups.com
Hi,

Does anyone know what is the theory behind, AP_YawController::get_servo_out, defined in AP_YawController.cpp?
There is a lot of magic going on with gains...

Regards, Menno

Jonathan Challinger

unread,
May 4, 2014, 7:34:52 AM5/4/14
to drones-...@googlegroups.com
The tuning guide includes a block diagram. http://plane.ardupilot.com/wiki/roll-pitch-controller-tuning/#Yaw_Controller
Essentially, there's a damping gain, which is a proportional gain on yaw rate error. There's a high-pass filter on the rate error, such that the rudder will tend to recenter itself. The turn coordination calculation takes a bank angle and airspeed, computes a yaw rate, and projects it onto the body Z axis. This means that the yaw damper won't try to oppose a banked turn. Then there's the SLIP gain, which in combination with the integrator gain, "steps on the ball" (Y accelerometer) in order to keep the aircraft in coordinated flight.


--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages