39 #if PERIODIC_TELEMETRY
42 static void send_sbus(
struct transport_tx *trans,
struct link_device *
dev)
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.
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
static void send_sbus(struct transport_tx *trans, struct link_device *dev)
uint8_t time_since_last_frame
bool frame_available
new frame available
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.