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:
parent
873915d82b
commit
5b47927937
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user