Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
inter_mcu.c File Reference

Communication between fbw and ap processes. More...

#include "inter_mcu.h"
#include "link_mcu.h"
+ Include dependency graph for inter_mcu.c:

Go to the source code of this file.

Functions

 PPRZ_MUTEX (ap_state_mtx)
 
 PPRZ_MUTEX (fbw_state_mtx)
 

Variables

struct fbw_state * fbw_state = &link_mcu_from_fbw_msg.payload.from_fbw
 
struct ap_state * ap_state = &link_mcu_from_ap_msg.payload.from_ap
 
volatile bool inter_mcu_received_fbw = false
 
volatile bool inter_mcu_received_ap = false
 

Detailed Description

Communication between fbw and ap processes.

Definition in file inter_mcu.c.

Function Documentation

PPRZ_MUTEX ( ap_state_mtx  )
PPRZ_MUTEX ( fbw_state_mtx  )

Variable Documentation

struct ap_state* ap_state = &link_mcu_from_ap_msg.payload.from_ap
struct fbw_state* fbw_state = &link_mcu_from_fbw_msg.payload.from_fbw
volatile bool inter_mcu_received_ap = false

Definition at line 41 of file inter_mcu.c.

Referenced by attitude_loop(), link_mcu_on_can_msg(), and parse_mavpilot_msg().

volatile bool inter_mcu_received_fbw = false

Definition at line 40 of file inter_mcu.c.

Referenced by event_task_ap(), link_mcu_on_can_msg(), and parse_mavpilot_msg().