TradHeli: Set Flybar passthrough mode in Acro Initialization function.

This commit is contained in:
Robert Lefebvre 2014-07-03 16:18:48 -04:00 committed by Randy Mackay
parent 9326d36e54
commit 184be135cd

View File

@ -7,6 +7,9 @@
// heli_acro_init - initialise acro controller // heli_acro_init - initialise acro controller
static bool heli_acro_init(bool ignore_checks) static bool heli_acro_init(bool ignore_checks)
{ {
// if heli is equipped with a flybar, then tell the attitude controller to pass through controls directly to servos
attitude_control.use_flybar_passthrough(motors.has_flybar());
// always successfully enter acro // always successfully enter acro
return true; return true;
} }