From 406429ba42697b14789b151edb80a67405677b6c Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Tue, 23 May 2023 05:22:31 +0100 Subject: [PATCH] Longer delay before declaring the landing --- main/flight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/flight.h b/main/flight.h index eabf47a..494fee9 100644 --- a/main/flight.h +++ b/main/flight.h @@ -73,7 +73,7 @@ class FlightMonitor { int Det=FlightThresh(Position, MinSpeed/2); // check in-flight criteria with half the limit if(Det<=0) // if fail { HoldTime++; // count the holding time - if(HoldTime>=2*MinHold) // if over twice the limit + if(HoldTime>=MinHold*4) // if over four times the limit { Landing=Position; HoldTime=0; // then declare landing, store landing position // char Name[16]; ShortName(Name, "XXX"); // printf("Landing #%d: %s\n", TakeoffCount, Name);