Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
Rotorcraft Inter-MCU on FlyByWire. More...
#include "intermcu_fbw.h"
#include "intermcu_msg.h"
#include "subsystems/radio_control.h"
#include "mcu_periph/uart.h"
#include "subsystems/datalink/pprz_transport.h"
Go to the source code of this file.
Functions | |
static void | intermcu_parse_msg (struct transport_rx *trans, void(*commands_frame_handler)(void)) |
void | intermcu_init (void) |
void | intermcu_periodic (void) |
void | intermcu_on_rc_frame (void) |
void | intermcu_send_status (uint8_t mode) |
void | InterMcuEvent (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 |
pprz_t | intermcu_commands [COMMANDS_NB] |
Rotorcraft Inter-MCU on FlyByWire.
Definition in file intermcu_fbw.c.
void intermcu_init | ( | void | ) |
Definition at line 47 of file intermcu_fbw.c.
References intermcu_transport, and pprz_transport_init().
void intermcu_on_rc_frame | ( | void | ) |
Definition at line 62 of file intermcu_fbw.c.
References INTERMCU_FBW, intermcu_transport, radio_control, RADIO_CONTROL_NB_CHANNEL, pprz_transport::trans_tx, and RadioControl::values.
Referenced by autopilot_on_rc_frame().
|
inlinestatic |
Definition at line 75 of file intermcu_fbw.c.
References FALSE, inter_mcu, intermcu_commands, INTERMCU_OK, transport_rx::msg_received, transport_rx::payload, intermcu_t::status, and intermcu_t::time_since_last_frame.
Referenced by InterMcuEvent().
void intermcu_periodic | ( | void | ) |
Definition at line 52 of file intermcu_fbw.c.
References inter_mcu, INTERMCU_LOST, INTERMCU_LOST_CNT, intermcu_t::status, and intermcu_t::time_since_last_frame.
void intermcu_send_status | ( | uint8_t | mode | ) |
Definition at line 68 of file intermcu_fbw.c.
Referenced by telemetry_periodic().
void InterMcuEvent | ( | void(*)(void) | frame_handler | ) |
Definition at line 102 of file intermcu_fbw.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.
Referenced by main_event().
struct intermcu_t inter_mcu |
Definition at line 43 of file intermcu_fbw.c.
Referenced by intermcu_parse_msg(), and intermcu_periodic().
pprz_t intermcu_commands[COMMANDS_NB] |
Definition at line 44 of file intermcu_fbw.c.
Referenced by autopilot_on_ap_command(), and intermcu_parse_msg().
|
static |
Definition at line 40 of file intermcu_fbw.c.
|
static |
Definition at line 41 of file intermcu_fbw.c.
Referenced by intermcu_init(), intermcu_on_rc_frame(), and InterMcuEvent().