Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Single SBUS radio_control. More...
#include "subsystems/radio_control.h"
#include "subsystems/radio_control/sbus.h"
#include <BOARD_CONFIG>
#include "subsystems/datalink/telemetry.h"
Go to the source code of this file.
Functions | |
static void | send_sbus (struct transport_tx *trans, struct link_device *dev) |
void | radio_control_impl_init (void) |
static void | sbus_decode_event (void) |
void | radio_control_impl_event (void(*_received_frame_handler)(void)) |
RC event function with handler callback. More... | |
Variables | |
struct Sbus | sbus |
SBUS struct. More... | |
Single SBUS radio_control.
Definition in file sbus.c.
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 66 of file sbus.c.
References Sbus::frame_available, RadioControl::frame_cpt, Sbus::pulses, radio_control, RadioControl::radio_ok_cpt, RC_OK, sbus, sbus_decode_event(), RadioControl::status, and RadioControl::time_since_last_frame.
void radio_control_impl_init | ( | void | ) |
Definition at line 48 of file sbus.c.
References DefaultPeriodic, register_periodic_telemetry(), sbus, sbus_common_init(), and send_sbus().
|
inlinestatic |
Definition at line 61 of file sbus.c.
References sbus, and sbus_common_decode_event().
Referenced by radio_control_impl_event().
|
static |
Definition at line 39 of file sbus.c.
References RadioControl::frame_rate, Sbus::ppm, radio_control, sbus, and SBUS_NB_CHANNEL.
Referenced by radio_control_impl_init().
struct Sbus sbus |
SBUS struct.
Definition at line 33 of file sbus.c.
Referenced by radio_control_impl_event(), radio_control_impl_init(), sbus_decode_event(), and send_sbus().