Plane: pre-launch flaps incorrectly always disabled

Pre-launch flaps are always disabled by checking current state against zero (which it always will be) instead of the param which is what it was supposed to be checking.
This commit is contained in:
Tom Pittenger 2017-04-18 14:40:17 -07:00 committed by GitHub
parent 873915d82b
commit 5b47927937

View File

@ -534,7 +534,7 @@ void Plane::set_servos_flaps(void)
}
break;
case AP_Vehicle::FixedWing::FLIGHT_NORMAL:
if (auto_flap_percent != 0 && in_preLaunch_flight_stage()) {
if (g.takeoff_flap_percent != 0 && in_preLaunch_flight_stage()) {
// TODO: move this to a new FLIGHT_PRE_TAKEOFF stage
auto_flap_percent = g.takeoff_flap_percent;
}