32 #ifndef RC_POLARITY_GPIO_PORT
33 #define RC_POLARITY_GPIO_PORT 0
35 #ifndef RC_POLARITY_GPIO_PIN
36 #define RC_POLARITY_GPIO_PIN 0
43 #if PERIODIC_TELEMETRY
46 static void send_sbus(
struct transport_tx *trans,
struct link_device *
dev)
49 pprz_msg_send_PPM(trans,
dev, AC_ID,
61 #if PERIODIC_TELEMETRY
Main include for ABI (AirBorneInterface).
#define RADIO_CONTROL_SBUS_ID
struct RadioControl radio_control
Generic interface for radio control modules.
uint8_t time_since_last_frame
#define RC_POLARITY_GPIO_PORT
static void send_sbus(struct transport_tx *trans, struct link_device *dev)
#define RC_POLARITY_GPIO_PIN
void sbus_event(void)
RC event function.
void sbus_init(void)
RC init function.
static void sbus_decode_event(void)
struct Sbus sbus
SBUS struct.
Radio control via single SBUS receiver.
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.
void sbus_common_decode_event(struct Sbus *sbus_p, struct uart_periph *dev)
Decoding event function.
uint16_t ppm[SBUS_NB_CHANNEL]
Decoded and converted to ppm values.
uint16_t pulses[SBUS_NB_CHANNEL]
Decoded values.
bool rc_lost
RC reception is lost.
bool rc_failsafe
Receiver set to in failsafe mode.
bool frame_available
A data frame is available.
static const struct usb_device_descriptor dev
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
Periodic telemetry system header (includes downlink utility and generated code).
#define DefaultPeriodic
Set default periodic telemetry.