mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Plane: use relative_ground_altitude
This commit is contained in:
parent
b3f182157c
commit
f3ceee5389
@ -46,7 +46,7 @@ bool Plane::parachute_manual_release()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parachute.alt_min() != 0 && relative_ground_altitude() < parachute.alt_min()) {
|
if (parachute.alt_min() != 0 && relative_ground_altitude(false) < parachute.alt_min()) {
|
||||||
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Parachute: Too low");
|
gcs_send_text_fmt(MAV_SEVERITY_WARNING, "Parachute: Too low");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user