Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sbus_dual.c File Reference

Dual SBUS radio_control. More...

#include "subsystems/radio_control.h"
#include "subsystems/radio_control/sbus_dual.h"
#include <BOARD_CONFIG>
#include "mcu_periph/uart.h"
#include "mcu_periph/gpio.h"
#include <string.h>
#include "subsystems/datalink/telemetry.h"
+ Include dependency graph for sbus_dual.c:

Go to the source code of this file.


static void send_sbus (struct transport_tx *trans, struct link_device *dev)
void radio_control_impl_init (void)
static void sbus_dual_decode_event (void)
void radio_control_impl_event (void(*_received_frame_handler)(void))
 RC event function with handler callback. More...


struct Sbus sbus1 sbus2
 SBUS struct. More...

Detailed Description

Dual SBUS radio_control.

Definition in file sbus_dual.c.

Function Documentation

void radio_control_impl_event ( void(*)(void)  _received_frame_handler)

RC event function with handler callback.

PPM frames are normalized using the IIR filter.

Definition at line 68 of file sbus_dual.c.

References Sbus::frame_available, RadioControl::frame_cpt, Sbus::pulses, radio_control, RadioControl::radio_ok_cpt, RC_OK, sbus2, sbus_dual_decode_event(), RadioControl::status, and RadioControl::time_since_last_frame.

+ Here is the call graph for this function:

void radio_control_impl_init ( void  )

Definition at line 51 of file sbus_dual.c.

References DefaultPeriodic, register_periodic_telemetry(), sbus2, sbus_common_init(), and send_sbus().

+ Here is the call graph for this function:

static void sbus_dual_decode_event ( void  )

Definition at line 62 of file sbus_dual.c.

References sbus2, and sbus_common_decode_event().

Referenced by radio_control_impl_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void send_sbus ( struct transport_tx *  trans,
struct link_device *  dev 

Definition at line 42 of file sbus_dual.c.

References RadioControl::frame_rate, radio_control, and SBUS_NB_CHANNEL.

Referenced by radio_control_impl_init().

+ Here is the caller graph for this function:

Variable Documentation

struct Sbus sbus1 sbus2

SBUS struct.

Definition at line 36 of file sbus_dual.c.

Referenced by radio_control_impl_event(), radio_control_impl_init(), and sbus_dual_decode_event().