Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Rotorcraft Inter-MCU on the autopilot. More...
#include "intermcu_ap.h"
#include "intermcu_msg.h"
#include "subsystems/radio_control.h"
#include "subsystems/datalink/pprz_transport.h"
#include "mcu_periph/uart.h"
Go to the source code of this file.
Functions | |
static void | intermcu_parse_msg (struct transport_rx *trans, void(*rc_frame_handler)(void)) |
void | intermcu_init (void) |
void | intermcu_periodic (void) |
void | intermcu_set_actuators (pprz_t *command_values, uint8_t ap_mode) |
void | RadioControlEvent (void(*frame_handler)(void)) |
Variables | |
static struct link_device * | intermcu_device = (&((INTERMCU_LINK).device)) |
static struct pprz_transport | intermcu_transport |
struct intermcu_t | inter_mcu |
Rotorcraft Inter-MCU on the autopilot.
Definition in file intermcu_ap.c.
void intermcu_init | ( | void | ) |
Definition at line 44 of file intermcu_ap.c.
Referenced by main_init().
|
inlinestatic |
Definition at line 65 of file intermcu_ap.c.
References FALSE, RadioControl::frame_cpt, transport_rx::msg_received, transport_rx::payload, radio_control, RC_OK, RadioControl::status, RadioControl::time_since_last_frame, and RadioControl::values.
Referenced by RadioControlEvent().
void intermcu_periodic | ( | void | ) |
Definition at line 49 of file intermcu_ap.c.
Referenced by main_periodic().
Definition at line 59 of file intermcu_ap.c.
References INTERMCU_AP, intermcu_transport, and pprz_transport::trans_tx.
Referenced by main_periodic().
void RadioControlEvent | ( | void(*)(void) | frame_handler | ) |
Definition at line 93 of file intermcu_ap.c.
References link_device::char_available, link_device::get_byte, intermcu_parse_msg(), intermcu_transport, transport_rx::msg_received, parse_pprz(), link_device::periph, and pprz_transport::trans_rx.
struct intermcu_t inter_mcu |
Definition at line 41 of file intermcu_ap.c.
Referenced by autopilot_on_rc_frame(), intermcu_periodic(), and main_periodic().
|
static |
Definition at line 38 of file intermcu_ap.c.
|
static |
Definition at line 39 of file intermcu_ap.c.
Referenced by intermcu_init(), intermcu_set_actuators(), and RadioControlEvent().