Paparazzi UAS
v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
|
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"
Go to the source code of this file.
Data Structures | |
struct | telemetry_intermcu_t |
Macros | |
#define | MSG_SIZE 256 |
Functions | |
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) |
Variables | |
fbw_mode_enum | fbw_mode |
Fly by wire modes. More... | |
static struct telemetry_intermcu_t | telemetry_intermcu |
Telemetry through InterMCU.
Definition in file telemetry_intermcu_fbw.c.
struct telemetry_intermcu_t |
Definition at line 39 of file telemetry_intermcu_ap.h.
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. |
#define MSG_SIZE 256 |
Definition at line 34 of file telemetry_intermcu_fbw.c.
void telemetry_intermcu_event | ( | void | ) |
Definition at line 70 of file telemetry_intermcu_fbw.c.
References intermcu_t::device, fbw_mode, FBW_MODE_FAILSAFE, intermcu, INTERMCU_FBW, telemetry_intermcu_t::msg_received, telemetry_intermcu_t::rx_buffer, telemetry_intermcu, telemetry_intermcu_t::trans, and intermcu_t::transport.
void telemetry_intermcu_init | ( | void | ) |
Definition at line 54 of file telemetry_intermcu_fbw.c.
References telemetry_intermcu_t::dev, telemetry_intermcu, and telemetry_intermcu_t::trans.
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().
void telemetry_intermcu_periodic | ( | void | ) |
Definition at line 64 of file telemetry_intermcu_fbw.c.
|
static |
Definition at line 100 of file telemetry_intermcu_fbw.c.
Referenced by telemetry_intermcu_on_msg().
fbw_mode_enum fbw_mode |
Fly by wire modes.
Definition at line 63 of file main_fbw.c.
Referenced by fbw_on_ap_command(), fbw_on_rc_frame(), fbw_safety_check(), handle_rc_frame(), init_fbw(), main_init(), main_periodic(), radio_control_periodic_handle(), radio_lost_mode(), send_fbw_status(), telemetry_intermcu_event(), and telemetry_periodic().
|
static |
Definition at line 48 of file telemetry_intermcu_fbw.c.
Referenced by telemetry_intermcu_event(), telemetry_intermcu_init(), and telemetry_intermcu_on_msg().