Easymotor doesn't have igniters, so it would have been silent on the
pad, which seems bad. Add HAS_PAD_REPORT code which beeps out 'pad'
once every five seconds.
Signed-off-by: Keith Packard <keithp@keithp.com>
#define AO_PA11_PA12_RMP 1
#define HAS_BEEP 1
#define HAS_BATTERY_REPORT 1
+#define HAS_PAD_REPORT 1
#define BEEPER_CHANNEL 3
#define BEEPER_TIMER 2
#define BEEPER_PORT (&stm_gpioa)
while (c-- && ao_flight_state == ao_flight_pad)
pause(AO_MS_TO_TICKS(100));
}
+#endif
+#if HAS_PAD_REPORT
+ while (ao_flight_state == ao_flight_pad) {
+ uint8_t c;
+ ao_report_flight_state();
+ c = 50;
+ while (c-- && ao_flight_state == ao_flight_pad)
+ pause(AO_MS_TO_TICKS(100));
+ }
#endif
while (ao_report_state == ao_flight_state)
ao_sleep(&ao_flight_state);