X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fcore%2Fao_flight.c;h=aa4f6961860f5e923585f947f3ef3c0581f869b4;hb=28c3923b6180e24a77aecc7162bb2852cec7d770;hp=c678645561a88569ae0943455e7240234891c4bd;hpb=0b92164143aaf0d2aa3d5d742484391c16545289;p=fw%2Faltos diff --git a/src/core/ao_flight.c b/src/core/ao_flight.c index c6786455..aa4f6961 100644 --- a/src/core/ao_flight.c +++ b/src/core/ao_flight.c @@ -40,6 +40,7 @@ __pdata enum ao_flight_state ao_flight_state; /* current flight state */ __pdata uint16_t ao_boost_tick; /* time of launch detect */ +__pdata uint16_t ao_motor_number; /* number of motors burned so far */ /* * track min/max data over a long interval to detect @@ -215,6 +216,7 @@ ao_flight(void) #else ao_flight_state = ao_flight_coast; #endif + ++ao_motor_number; ao_wakeup(DATA_TO_XDATA(&ao_flight_state)); } break;