31 #ifndef RC_POLARITY_GPIO_PORT
32 #define RC_POLARITY_GPIO_PORT 0
34 #ifndef RC_POLARITY_GPIO_PIN
35 #define RC_POLARITY_GPIO_PIN 0
42 #if PERIODIC_TELEMETRY
45 static void send_sbus(
struct transport_tx *trans,
struct link_device *
dev)
48 pprz_msg_send_PPM(trans, dev, AC_ID,
59 #if PERIODIC_TELEMETRY
92 _received_frame_handler();
void sbus_common_decode_event(struct Sbus *sbus_p, struct uart_periph *dev)
Decoding event function.
void radio_control_impl_init(void)
Periodic telemetry system header (includes downlink utility and generated code).
#define RC_POLARITY_GPIO_PIN
uint16_t pulses[SBUS_NB_CHANNEL]
Decoded values.
bool rc_lost
RC reception is lost.
static void sbus_decode_event(void)
void radio_control_impl_event(void(*_received_frame_handler)(void))
RC event function with handler callback.
static void send_sbus(struct transport_tx *trans, struct link_device *dev)
struct Sbus sbus
SBUS struct.
void sbus_common_init(struct Sbus *sbus_p, struct uart_periph *dev, gpio_port_t gpio_polarity_port, uint16_t gpio_polarity_pin)
Init function.
#define DefaultPeriodic
Set default periodic telemetry.
struct RadioControl radio_control
uint16_t ppm[SBUS_NB_CHANNEL]
Decoded and converted to ppm values.
static const struct usb_device_descriptor dev
#define RC_POLARITY_GPIO_PORT
Radio control via single SBUS receiver.
uint8_t time_since_last_frame
bool frame_available
A data frame is available.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.