X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_flight.c;h=494e656d5ccd3dabe5139cdd1dab6303ba84c8d0;hb=6cb744e305116a738b5d71686c6748f6f08c12ea;hp=5e19463867bb85718dabbd7ec93c9cce256290f8;hpb=9a8fec1b6d8f3346f988882ffb03d7d0e45b3c81;p=fw%2Faltos diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index 5e194638..494e656d 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -223,6 +223,17 @@ ao_flight(void) #endif case ao_flight_coast: + /* + * By customer request - allow the user + * to lock out apogee detection for a specified + * number of seconds. + */ + if (ao_config.apogee_lockout) { + if ((ao_sample_tick - ao_boost_tick) < + AO_SEC_TO_TICKS(ao_config.apogee_lockout)) + break; + } + /* apogee detect: coast to drogue deploy: * * speed: < 0