Plane: require 3 seconds of not flying to declare a crash on land
This commit is contained in:
parent
1b0ed277b3
commit
9468a59204
@ -56,7 +56,7 @@ static bool verify_land()
|
||||
(fabsf(auto_state.land_sink_rate) < 0.2f && !is_flying())) {
|
||||
|
||||
if (!auto_state.land_complete) {
|
||||
if (!is_flying()) {
|
||||
if (!is_flying() && (hal.scheduler->millis()-auto_state.last_flying_ms) > 3000) {
|
||||
gcs_send_text_fmt(PSTR("Flare crash detected: speed=%.1f"), gps.ground_speed());
|
||||
} else {
|
||||
gcs_send_text_fmt(PSTR("Flare %.1fm sink=%.2f speed=%.1f"),
|
||||
|
Loading…
Reference in New Issue
Block a user