exit (1);
cc_usb_printf(cc, "m 0\n");
- cc_usb_printf(cc, "F %d\n", freq);
+ cc_usb_printf(cc, "c F %d\n", freq);
for (i = optind; i < argc; i++) {
file = fopen(argv[i], "r");
if (!file) {
last_tick = telem.generic.tick;
send_telem(cc, &telem);
} else {
+ enum ao_flight_state state = packet_state(&telem);
add_telem(&telem);
- if (packet_state(&telem) > ao_flight_pad) {
+ if (ao_flight_pad < state && state < ao_flight_landed) {
+ printf ("started\n");
started = 1;
last_tick = send_queued(cc, realtime);
}