Paparazzi UAS  v5.15_devel-81-gd13dafb
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

Definition at line 37 of file inter_mcu.c.

Referenced by copy_from_to_fbw(), init_ap(), link_mcu_on_can_msg(), and parse_mavpilot_msg().

struct fbw_state* fbw_state = &link_mcu_from_fbw_msg.payload.from_fbw
volatile bool inter_mcu_received_ap = false
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().