Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
intermcu_fbw.h File Reference

Rotorcraft Inter-MCU on FlyByWire. More...

+ Include dependency graph for intermcu_fbw.h:
+ This graph shows which files directly or indirectly include this file:

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]
 

Detailed Description

Rotorcraft Inter-MCU on FlyByWire.

Definition in file intermcu_fbw.h.

Macro Definition Documentation

◆ INTERMCU_RADIO_AUX1

#define INTERMCU_RADIO_AUX1   5

Definition at line 46 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_AUX2

#define INTERMCU_RADIO_AUX2   6

Definition at line 47 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_AUX3

#define INTERMCU_RADIO_AUX3   7

Definition at line 48 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_CONTROL_NB_CHANNEL

#define INTERMCU_RADIO_CONTROL_NB_CHANNEL   8

Definition at line 49 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_KILL_SWITCH

#define INTERMCU_RADIO_KILL_SWITCH   5

Definition at line 45 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_MODE

#define INTERMCU_RADIO_MODE   4

Definition at line 44 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_PITCH

#define INTERMCU_RADIO_PITCH   2

Definition at line 42 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_ROLL

#define INTERMCU_RADIO_ROLL   1

Definition at line 41 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_THROTTLE

#define INTERMCU_RADIO_THROTTLE   0

Definition at line 40 of file intermcu_fbw.h.

◆ INTERMCU_RADIO_YAW

#define INTERMCU_RADIO_YAW   3

Definition at line 43 of file intermcu_fbw.h.

Function Documentation

◆ intermcu_on_rc_frame()

◆ intermcu_send_status()

void intermcu_send_status ( uint8_t  mode)

◆ InterMcuEvent()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ autopilot_motors_on

bool autopilot_motors_on

Definition at line 64 of file intermcu_fbw.c.

Referenced by intermcu_parse_msg().

◆ intermcu_commands

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().