Paparazzi UAS  v5.15_devel-61-g9c6bcf9
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
telemetry_intermcu_fbw.c File Reference

Telemetry through InterMCU. More...

#include "telemetry_intermcu.h"
#include "subsystems/intermcu.h"
#include "pprzlink/pprz_transport.h"
#include "pprzlink/intermcu_msg.h"
#include "subsystems/datalink/telemetry.h"
#include "firmwares/rotorcraft/main_fbw.h"
+ Include dependency graph for telemetry_intermcu_fbw.c:

Go to the source code of this file.

Data Structures

struct  telemetry_intermcu_t


#define MSG_SIZE   256


static void telemetry_intermcu_repack (struct transport_tx *trans, struct link_device *dev, uint8_t ac_id, uint8_t *msg, uint8_t size)
void telemetry_intermcu_init (void)
void telemetry_intermcu_periodic (void)
void telemetry_intermcu_event (void)
void telemetry_intermcu_on_msg (uint8_t *msg, uint8_t size)


fbw_mode_enum fbw_mode
 Fly by wire modes. More...
static struct telemetry_intermcu_t telemetry_intermcu

Detailed Description

Telemetry through InterMCU.

Definition in file telemetry_intermcu_fbw.c.

Data Structure Documentation

struct telemetry_intermcu_t

Definition at line 39 of file telemetry_intermcu_ap.h.

+ Collaboration diagram for telemetry_intermcu_t:
Data Fields
uint8_t buf[TELEMERTY_INTERMCU_MSG_SIZE] Buffer for the messages.
uint8_t buf_idx Index of the buffer.
struct link_device * dev Device structure for communication.
struct link_device dev Device structure for communication.
bool msg_received Whenever a datalink message is received.
uint8_t rx_buffer[MSG_SIZE] Received bytes from datalink.
struct pprz_transport trans Transport without any extra encoding.
struct short_transport trans Transport without any extra encoding.

Macro Definition Documentation

#define MSG_SIZE   256

Definition at line 34 of file telemetry_intermcu_fbw.c.

Function Documentation

void telemetry_intermcu_init ( void  )
void telemetry_intermcu_on_msg ( uint8_t msg,
uint8_t  size 

Definition at line 95 of file telemetry_intermcu_fbw.c.

References telemetry_intermcu_t::dev, telemetry_intermcu, telemetry_intermcu_repack(), and telemetry_intermcu_t::trans.

Referenced by intermcu_parse_msg().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void telemetry_intermcu_periodic ( void  )

Definition at line 64 of file telemetry_intermcu_fbw.c.

static void telemetry_intermcu_repack ( struct transport_tx *  trans,
struct link_device *  dev,
uint8_t  ac_id,
uint8_t msg,
uint8_t  size 

Definition at line 100 of file telemetry_intermcu_fbw.c.

References ac_id, and dev.

Referenced by telemetry_intermcu_on_msg().

+ Here is the caller graph for this function:

Variable Documentation

struct telemetry_intermcu_t telemetry_intermcu