|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Dual SBUS radio_control. More...
#include "modules/radio_control/radio_control.h"#include "modules/radio_control/sbus_dual.h"#include "modules/core/abi.h"#include <BOARD_CONFIG>#include "mcu_periph/uart.h"#include <string.h>#include "modules/datalink/telemetry.h"
Include dependency graph for sbus_dual.c:Go to the source code of this file.
Macros | |
| #define | RC_POLARITY_GPIO_PORT 0 |
| #define | RC_POLARITY_GPIO_PIN 0 |
| #define | RC2_POLARITY_GPIO_PORT RC_POLARITY_GPIO_PORT |
| #define | RC2_POLARITY_GPIO_PIN RC_POLARITY_GPIO_PIN |
Functions | |
| static void | send_sbus (struct transport_tx *trans, struct link_device *dev) |
| void | sbus_dual_init (void) |
| RC init function. | |
| static void | sbus_dual_decode_event (void) |
| void | sbus_dual_event (void) |
| RC event function. | |
Variables | |
| struct Sbus sbus1 | sbus2 |
| SBUS struct. | |
Dual SBUS radio_control.
Definition in file sbus_dual.c.
| #define RC2_POLARITY_GPIO_PIN RC_POLARITY_GPIO_PIN |
Definition at line 45 of file sbus_dual.c.
| #define RC2_POLARITY_GPIO_PORT RC_POLARITY_GPIO_PORT |
Definition at line 42 of file sbus_dual.c.
| #define RC_POLARITY_GPIO_PIN 0 |
Definition at line 38 of file sbus_dual.c.
| #define RC_POLARITY_GPIO_PORT 0 |
Definition at line 35 of file sbus_dual.c.
Definition at line 76 of file sbus_dual.c.
References foo, sbus2, and sbus_common_decode_event().
Referenced by sbus_dual_event().
Here is the call graph for this function:
Here is the caller graph for this function:RC event function.
Definition at line 82 of file sbus_dual.c.
References foo, Sbus::frame_available, RadioControl::frame_cpt, Sbus::pulses, radio_control, RADIO_CONTROL_SBUS_DUAL_ID, 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:RC init function.
Definition at line 64 of file sbus_dual.c.
References DefaultPeriodic, foo, RadioControl::nb_channel, radio_control, RC2_POLARITY_GPIO_PIN, RC2_POLARITY_GPIO_PORT, RC_POLARITY_GPIO_PIN, RC_POLARITY_GPIO_PORT, register_periodic_telemetry(), sbus2, sbus_common_init(), SBUS_NB_CHANNEL, and send_sbus().
Here is the call graph for this function:
|
static |
Definition at line 55 of file sbus_dual.c.
References dev, foo, RadioControl::frame_rate, radio_control, and SBUS_NB_CHANNEL.
Referenced by sbus_dual_init().
Here is the caller graph for this function:SBUS struct.
Definition at line 49 of file sbus_dual.c.
Referenced by sbus_dual_decode_event(), sbus_dual_event(), and sbus_dual_init().