Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Rotorcraft Inter-MCU on FlyByWire. More...
#include "subsystems/intermcu.h"
Go to the source code of this file.
Macros | |
#define | INTERMCU_RADIO_THROTTLE 0 |
#define | INTERMCU_RADIO_ROLL 1 |
#define | INTERMCU_RADIO_PITCH 2 |
#define | INTERMCU_RADIO_YAW 3 |
#define | INTERMCU_RADIO_MODE 4 |
#define | INTERMCU_RADIO_KILL_SWITCH 5 |
#define | INTERMCU_RADIO_AUX1 5 |
#define | INTERMCU_RADIO_AUX2 6 |
#define | INTERMCU_RADIO_AUX3 7 |
#define | INTERMCU_RADIO_CONTROL_NB_CHANNEL 8 |
Functions | |
void | intermcu_on_rc_frame (uint8_t fbw_mode) |
void | intermcu_send_status (uint8_t mode) |
void | InterMcuEvent (void(*frame_handler)(void)) |
Variables | |
bool | autopilot_motors_on |
pprz_t | intermcu_commands [COMMANDS_NB] |
Rotorcraft Inter-MCU on FlyByWire.
Definition in file intermcu_fbw.h.
#define INTERMCU_RADIO_AUX1 5 |
Definition at line 46 of file intermcu_fbw.h.
#define INTERMCU_RADIO_AUX2 6 |
Definition at line 47 of file intermcu_fbw.h.
#define INTERMCU_RADIO_AUX3 7 |
Definition at line 48 of file intermcu_fbw.h.
#define INTERMCU_RADIO_CONTROL_NB_CHANNEL 8 |
Definition at line 49 of file intermcu_fbw.h.
#define INTERMCU_RADIO_KILL_SWITCH 5 |
Definition at line 45 of file intermcu_fbw.h.
#define INTERMCU_RADIO_MODE 4 |
Definition at line 44 of file intermcu_fbw.h.
#define INTERMCU_RADIO_PITCH 2 |
Definition at line 42 of file intermcu_fbw.h.
#define INTERMCU_RADIO_ROLL 1 |
Definition at line 41 of file intermcu_fbw.h.
#define INTERMCU_RADIO_THROTTLE 0 |
Definition at line 40 of file intermcu_fbw.h.
#define INTERMCU_RADIO_YAW 3 |
Definition at line 43 of file intermcu_fbw.h.
void intermcu_on_rc_frame | ( | uint8_t | fbw_mode | ) |
Definition at line 106 of file intermcu_fbw.c.
References intermcu_t::device, fbw_mode, intermcu, INTERMCU_FBW, INTERMCU_RADIO_AUX1, INTERMCU_RADIO_AUX2, INTERMCU_RADIO_AUX3, INTERMCU_RADIO_KILL_SWITCH, INTERMCU_RADIO_MODE, INTERMCU_RADIO_PITCH, INTERMCU_RADIO_ROLL, INTERMCU_RADIO_THROTTLE, INTERMCU_RADIO_YAW, RADIO_AUX1, RADIO_AUX2, RADIO_AUX3, radio_control, RADIO_CONTROL_NB_CHANNEL, RADIO_KILL_SWITCH, RADIO_MODE, RADIO_PITCH, RADIO_ROLL, RADIO_THROTTLE, RADIO_YAW, intermcu_t::transport, and RadioControl::values.
Referenced by fbw_on_rc_frame().
void intermcu_send_status | ( | uint8_t | mode | ) |
Definition at line 139 of file intermcu_fbw.c.
References Electrical::current, intermcu_t::device, electrical, RadioControl::frame_rate, intermcu, INTERMCU_FBW, mode, radio_control, RadioControl::status, intermcu_t::transport, and Electrical::vsupply.
Referenced by telemetry_periodic().
void InterMcuEvent | ( | void(*)(void) | frame_handler | ) |
Definition at line 199 of file intermcu_fbw.c.
References c(), intermcu_t::device, imcu_msg_buf, intermcu, intermcu_parse_msg(), intermcu_t::msg_available, and intermcu_t::transport.
Referenced by main_event().
bool autopilot_motors_on |
Definition at line 64 of file intermcu_fbw.c.
Referenced by intermcu_parse_msg().
pprz_t intermcu_commands[COMMANDS_NB] |
Definition at line 63 of file intermcu_fbw.c.
Referenced by fbw_on_ap_command(), and intermcu_parse_msg().