34#ifndef RC_POLARITY_GPIO_PORT
35#define RC_POLARITY_GPIO_PORT 0
37#ifndef RC_POLARITY_GPIO_PIN
38#define RC_POLARITY_GPIO_PIN 0
41#ifndef RC2_POLARITY_GPIO_PORT
42#define RC2_POLARITY_GPIO_PORT RC_POLARITY_GPIO_PORT
44#ifndef RC2_POLARITY_GPIO_PIN
45#define RC2_POLARITY_GPIO_PIN RC_POLARITY_GPIO_PIN
55static void send_sbus(
struct transport_tx *trans,
struct link_device *
dev)
58 pprz_msg_send_PPM(trans,
dev, AC_ID,
85 if (
sbus2.frame_available) {
95 sbus2.frame_available =
false;
97 if (sbus1.frame_available) {
107 sbus1.frame_available =
false;
Main include for ABI (AirBorneInterface).
#define RADIO_CONTROL_SBUS_DUAL_ID
#define RC_POLARITY_GPIO_PORT
#define RC_POLARITY_GPIO_PIN
static struct uart_periph * dev
struct RadioControl radio_control
Generic interface for radio control modules.
static void send_sbus(struct transport_tx *trans, struct link_device *dev)
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.
static void send_sbus(struct transport_tx *trans, struct link_device *dev)
struct Sbus sbus1 sbus2
SBUS struct.
void sbus_dual_event(void)
RC event function.
#define RC2_POLARITY_GPIO_PIN
static void sbus_dual_decode_event(void)
#define RC2_POLARITY_GPIO_PORT
void sbus_dual_init(void)
RC init function.
Radio control via two SBUS receivers.
int16_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint16_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.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API