Plane: Parachute uses altitude above ground (not home) to check suitability for deployment.

This commit is contained in:
Rimvydas Naktinis 2016-05-05 12:02:31 +01:00 committed by Tom Pittenger
parent 9fdf39baf0
commit 3c00324fd2

View File

@ -46,7 +46,7 @@ bool Plane::parachute_manual_release()
return false;
}
if (relative_altitude() < parachute.alt_min()) {
if (relative_ground_altitude() < parachute.alt_min()) {
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Parachute: Too low");
return false;
}