X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao.h;h=075ec63af8bce75ef83774d3d869f775a4c94452;hb=5ba75e95c98d3e441a58d6f75d328d579e1997fe;hp=00c395d6437663195721aa9991eacec4b19d2f81;hpb=5c28b9312d90a3a66016abc641c20bcd852d69f8;p=fw%2Faltos diff --git a/src/ao.h b/src/ao.h index 00c395d6..075ec63a 100644 --- a/src/ao.h +++ b/src/ao.h @@ -937,7 +937,7 @@ struct ao_telemetry_recv { /* Set delay between telemetry reports (0 to disable) */ #define AO_TELEMETRY_INTERVAL_PAD AO_MS_TO_TICKS(1000) -#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(50) +#define AO_TELEMETRY_INTERVAL_FLIGHT AO_MS_TO_TICKS(100) #define AO_TELEMETRY_INTERVAL_RECOVER AO_MS_TO_TICKS(1000) void @@ -962,18 +962,12 @@ void ao_radio_general_isr(void) __interrupt 16; void -ao_radio_get(void); +ao_radio_get(uint8_t len); #define ao_radio_put() ao_mutex_put(&ao_radio_mutex) void -ao_radio_set_fixed_pkt(size_t size); - -#define ao_radio_set_telemetry() \ - ao_radio_set_fixed_pkt(sizeof (struct ao_telemetry)) - -#define ao_radio_set_packet() \ - ao_radio_set_fixed_pkt(sizeof (struct ao_packet)) +ao_radio_set_packet(void); void ao_radio_send(__xdata void *data, uint8_t size) __reentrant;