Plane: parachute code can not rely on is_flying() because it is unreliable in a stalled aircraft

This commit is contained in:
Tom Pittenger 2016-06-07 09:01:29 -07:00
parent 3140ce6ab6
commit ef3d17cc4c
1 changed files with 0 additions and 6 deletions

View File

@ -39,12 +39,6 @@ bool Plane::parachute_manual_release()
return false;
}
// do not release if vehicle is not flying
if (!is_flying() && parachute.alt_min() != 0) {
// warn user of reason for failure
gcs_send_text(MAV_SEVERITY_WARNING,"Parachute: Not flying");
return false;
}
if (parachute.alt_min() != 0 && relative_ground_altitude(false) < parachute.alt_min()) {
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Parachute: Too low");