Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
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.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_AUX2 6 |
Definition at line 47 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_AUX3 7 |
Definition at line 48 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#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.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_MODE 4 |
Definition at line 44 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_PITCH 2 |
Definition at line 42 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_ROLL 1 |
Definition at line 41 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_THROTTLE 0 |
Definition at line 40 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
#define INTERMCU_RADIO_YAW 3 |
Definition at line 43 of file intermcu_fbw.h.
Referenced by intermcu_on_rc_frame().
void intermcu_on_rc_frame | ( | uint8_t | fbw_mode | ) |
Definition at line 88 of file intermcu_fbw.c.
References intermcu_t::device, 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, 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 121 of file intermcu_fbw.c.
References Electrical::current, intermcu_t::device, electrical, RadioControl::frame_rate, INTERMCU_FBW, radio_control, RadioControl::status, intermcu_t::transport, and Electrical::vsupply.
Referenced by telemetry_periodic().
void InterMcuEvent | ( | void(*)(void) | frame_handler | ) |
Definition at line 175 of file intermcu_fbw.c.
References intermcu_t::device, imcu_msg_buf, intermcu_parse_msg(), intermcu_t::msg_available, and intermcu_t::transport.
Referenced by main_event().
bool autopilot_motors_on |
Definition at line 76 of file autopilot.c.
Referenced by actuators_ardrone_motor_status(), actuators_bebop_commit(), actuators_esc32_commit(), autopilot_arming_check_motors_on(), autopilot_init(), autopilot_on_rc_frame(), autopilot_periodic(), autopilot_set_motors_on(), failsafe_check(), hott_check_serial_data(), hott_update_eam_msg(), hott_update_gam_msg(), intermcu_set_actuators(), main_periodic(), mavlink_common_message_handler(), sdlogger_spi_direct_periodic(), send_status(), and stabilization_attitude_run().
pprz_t intermcu_commands[COMMANDS_NB] |
Definition at line 61 of file intermcu_fbw.c.
Referenced by fbw_on_ap_command().