39 #if PERIODIC_TELEMETRY
45 pprz_msg_send_PPM(trans, dev, AC_ID,
57 #if PERIODIC_TELEMETRY
79 _received_frame_handler();
83 if (sbus1.frame_available) {
91 _received_frame_handler();
93 sbus1.frame_available =
FALSE;
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void sbus_common_decode_event(struct Sbus *sbus_p, struct uart_periph *dev)
Decoding event function.
Generic transmission transport header.
void radio_control_impl_event(void(*_received_frame_handler)(void))
RC event function with handler callback.
Periodic telemetry system header (includes downlink utility and generated code).
uint16_t pulses[SBUS_NB_CHANNEL]
decoded values
Some architecture independent helper functions for GPIOs.
void radio_control_impl_init(void)
Radio control via two SBUS receivers.
#define DefaultPeriodic
Set default periodic telemetry.
void sbus_common_init(struct Sbus *sbus_p, struct uart_periph *dev)
Init function.
struct RadioControl radio_control
struct Sbus sbus1 sbus2
SBUS struct.
static const struct usb_device_descriptor dev
uint8_t time_since_last_frame
static void sbus_dual_decode_event(void)
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
bool_t frame_available
new frame available