Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Single SBUS radio_control. More...
#include "modules/radio_control/radio_control.h"
#include "modules/radio_control/sbus.h"
#include "modules/core/abi.h"
#include <BOARD_CONFIG>
#include "modules/datalink/telemetry.h"
Go to the source code of this file.
Macros | |
#define | RC_POLARITY_GPIO_PORT 0 |
#define | RC_POLARITY_GPIO_PIN 0 |
Functions | |
static void | send_sbus (struct transport_tx *trans, struct link_device *dev) |
void | sbus_init (void) |
RC init function. More... | |
static void | sbus_decode_event (void) |
void | sbus_event (void) |
RC event function. More... | |
Variables | |
struct Sbus | sbus |
SBUS struct. More... | |
Single SBUS radio_control.
Definition in file sbus.c.
|
inlinestatic |
Definition at line 69 of file sbus.c.
References sbus, and sbus_common_decode_event().
Referenced by sbus_event().
void sbus_event | ( | void | ) |
RC event function.
Definition at line 74 of file sbus.c.
References Sbus::frame_available, RadioControl::frame_cpt, Sbus::pulses, radio_control, RADIO_CONTROL_SBUS_ID, RadioControl::radio_ok_cpt, Sbus::rc_failsafe, Sbus::rc_lost, RC_OK, RC_REALLY_LOST, sbus, sbus_decode_event(), RadioControl::status, and RadioControl::time_since_last_frame.
void sbus_init | ( | void | ) |
RC init function.
Definition at line 55 of file sbus.c.
References DefaultPeriodic, RadioControl::nb_channel, radio_control, RC_POLARITY_GPIO_PIN, RC_POLARITY_GPIO_PORT, register_periodic_telemetry(), sbus, sbus_common_init(), SBUS_NB_CHANNEL, and send_sbus().
|
static |
Definition at line 46 of file sbus.c.
References dev, RadioControl::frame_rate, Sbus::ppm, radio_control, sbus, and SBUS_NB_CHANNEL.
Referenced by sbus_init().
struct Sbus sbus |
SBUS struct.
Definition at line 1 of file sbus.c.
Referenced by sbus_decode_event(), sbus_event(), sbus_init(), and send_sbus().