Plane: quadplane: don't use is_active_z(), becasue its wrong

This commit is contained in:
Iampete1 2021-11-17 18:44:48 +00:00 committed by Andrew Tridgell
parent fb1f6b57ad
commit 4848ac9166

View File

@ -892,7 +892,7 @@ void QuadPlane::run_z_controller(void)
// never run Z controller in tailsitter transtion
return;
}
if (!pos_control->is_active_z()) {
if ((now - last_pidz_active_ms) > 20) {
// set vertical speed and acceleration limits
pos_control->set_max_speed_accel_z(-get_pilot_velocity_z_max_dn(), pilot_velocity_z_max_up, pilot_accel_z);