Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
intermcu_fbw.c File Reference

Rotorcraft Inter-MCU on FlyByWire. More...

#include "intermcu_fbw.h"
#include "intermcu_msg.h"
#include "subsystems/radio_control.h"
#include "mcu_periph/uart.h"
#include "subsystems/datalink/pprz_transport.h"
+ Include dependency graph for intermcu_fbw.c:

Go to the source code of this file.

Functions

static void intermcu_parse_msg (struct transport_rx *trans, void(*commands_frame_handler)(void))
 
void intermcu_init (void)
 
void intermcu_periodic (void)
 
void intermcu_on_rc_frame (void)
 
void intermcu_send_status (uint8_t mode)
 
void InterMcuEvent (void(*frame_handler)(void))
 

Variables

static struct link_deviceintermcu_device = (&((INTERMCU_LINK).device))
 
static struct pprz_transport intermcu_transport
 
struct intermcu_t inter_mcu
 
pprz_t intermcu_commands [COMMANDS_NB]
 

Detailed Description

Rotorcraft Inter-MCU on FlyByWire.

Definition in file intermcu_fbw.c.

Function Documentation

void intermcu_init ( void  )

Definition at line 47 of file intermcu_fbw.c.

References intermcu_transport, and pprz_transport_init().

+ Here is the call graph for this function:

void intermcu_on_rc_frame ( void  )

Definition at line 62 of file intermcu_fbw.c.

References INTERMCU_FBW, intermcu_transport, radio_control, RADIO_CONTROL_NB_CHANNEL, pprz_transport::trans_tx, and RadioControl::values.

Referenced by autopilot_on_rc_frame().

+ Here is the caller graph for this function:

static void intermcu_parse_msg ( struct transport_rx trans,
void(*)(void)  commands_frame_handler 
)
inlinestatic

Definition at line 75 of file intermcu_fbw.c.

References FALSE, inter_mcu, intermcu_commands, INTERMCU_OK, transport_rx::msg_received, transport_rx::payload, intermcu_t::status, and intermcu_t::time_since_last_frame.

Referenced by InterMcuEvent().

+ Here is the caller graph for this function:

void intermcu_periodic ( void  )
void intermcu_send_status ( uint8_t  mode)

Definition at line 68 of file intermcu_fbw.c.

Referenced by telemetry_periodic().

+ Here is the caller graph for this function:

void InterMcuEvent ( void(*)(void)  frame_handler)

Definition at line 102 of file intermcu_fbw.c.

References link_device::char_available, link_device::get_byte, intermcu_parse_msg(), intermcu_transport, transport_rx::msg_received, parse_pprz(), link_device::periph, and pprz_transport::trans_rx.

Referenced by main_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

struct intermcu_t inter_mcu

Definition at line 43 of file intermcu_fbw.c.

Referenced by intermcu_parse_msg(), and intermcu_periodic().

pprz_t intermcu_commands[COMMANDS_NB]

Definition at line 44 of file intermcu_fbw.c.

Referenced by autopilot_on_ap_command(), and intermcu_parse_msg().

struct link_device* intermcu_device = (&((INTERMCU_LINK).device))
static

Definition at line 40 of file intermcu_fbw.c.

struct pprz_transport intermcu_transport
static

Definition at line 41 of file intermcu_fbw.c.

Referenced by intermcu_init(), intermcu_on_rc_frame(), and InterMcuEvent().