Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Rotorcraft Inter-MCU on the autopilot. More...
#include "intermcu_ap.h"
#include "pprzlink/intermcu_msg.h"
#include "subsystems/radio_control.h"
#include "mcu_periph/uart.h"
#include "subsystems/electrical.h"
#include "autopilot.h"
#include "subsystems/datalink/telemetry.h"
Go to the source code of this file.
Functions | |
static void | intermcu_parse_msg (void(*rc_frame_handler)(void)) |
static void | send_status (struct transport_tx *trans, struct link_device *dev) |
void | intermcu_init (void) |
void | intermcu_periodic (void) |
void | intermcu_set_enabled (bool value) |
void | intermcu_set_actuators (pprz_t *command_values, uint8_t ap_mode) |
void | intermcu_send_spektrum_bind (void) |
void | RadioControlEvent (void(*frame_handler)(void)) |
Variables | |
struct intermcu_t | intermcu |
uint8_t | imcu_msg_buf [128] |
The InterMCU message buffer. More... | |
static struct fbw_status_t | fbw_status |
Rotorcraft Inter-MCU on the autopilot.
Definition in file intermcu_ap.c.
void intermcu_init | ( | void | ) |
Definition at line 64 of file intermcu_ap.c.
Referenced by main_init().
|
inlinestatic |
Definition at line 118 of file intermcu_ap.c.
References fbw_status_t::current, fbw_status, RadioControl::frame_cpt, fbw_status_t::frame_rate, imcu_msg_buf, fbw_status_t::mode, radio_control, RC_OK, fbw_status_t::rc_status, RadioControl::status, intermcu_t::status, RadioControl::time_since_last_frame, RadioControl::values, and fbw_status_t::vsupply.
Referenced by RadioControlEvent().
void intermcu_periodic | ( | void | ) |
Definition at line 74 of file intermcu_ap.c.
Referenced by main_periodic().
void intermcu_send_spektrum_bind | ( | void | ) |
Definition at line 109 of file intermcu_ap.c.
References intermcu_t::device, intermcu_t::enabled, INTERMCU_AP, and intermcu_t::transport.
Referenced by spektrum_soft_bind_click().
Definition at line 91 of file intermcu_ap.c.
References autopilot_motors_on, intermcu_t::cmd_status, intermcu_t::device, intermcu_t::enabled, INTERMCU_AP, INTERMCU_CMD_MOTORS_ON, INTERMCU_SET_CMD_STATUS, and intermcu_t::transport.
Referenced by main_periodic().
void intermcu_set_enabled | ( | bool | value | ) |
Definition at line 85 of file intermcu_ap.c.
References intermcu_t::enabled.
Referenced by px4flash_event().
void RadioControlEvent | ( | void(*)(void) | frame_handler | ) |
Definition at line 154 of file intermcu_ap.c.
References intermcu_t::device, intermcu_t::enabled, imcu_msg_buf, intermcu_parse_msg(), intermcu_t::msg_available, and intermcu_t::transport.
|
static |
Definition at line 55 of file intermcu_ap.c.
References fbw_status_t::current, fbw_status, fbw_status_t::frame_rate, fbw_status_t::mode, fbw_status_t::rc_status, and fbw_status_t::vsupply.
Referenced by intermcu_init().
|
static |
Definition at line 47 of file intermcu_ap.c.
Referenced by intermcu_parse_msg(), and send_status().
uint8_t imcu_msg_buf[128] |
The InterMCU message buffer.
Definition at line 46 of file intermcu_ap.c.
Referenced by intermcu_parse_msg(), and RadioControlEvent().
struct intermcu_t intermcu |
Definition at line 41 of file intermcu_ap.c.
Referenced by fbw_on_rc_frame(), fbw_safety_check(), main_periodic(), opa_controller_periodic(), and telemetry_intermcu_send_message().