Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
mag_pitot_uart.c File Reference
#include "modules/sensors/mag_pitot_uart.h"
#include "pprzlink/pprz_transport.h"
#include "pprzlink/intermcu_msg.h"
#include "mcu_periph/uart.h"
#include "modules/core/abi.h"
#include "mcu_periph/sys_time.h"
#include "modules/imu/imu.h"
#include "state.h"
Include dependency graph for mag_pitot_uart.c:

Go to the source code of this file.

Functions

void mag_pitot_init ()
static void mag_pitot_parse_msg (void)
void mag_pitot_event ()

Variables

static struct mag_pitot_t mag_pitot
static uint8_t mp_msg_buf [128]
 The message buffer for the Magneto and pitot.

Detailed Description

Author
C. De Wagter Remotely located magnetometer and pitot tube over uart (RS232) communication

Definition in file mag_pitot_uart.c.

Function Documentation

◆ mag_pitot_event()

void mag_pitot_event ( void )

Definition at line 113 of file mag_pitot_uart.c.

References mag_pitot, mag_pitot_parse_msg(), and mp_msg_buf.

Here is the call graph for this function:

◆ mag_pitot_init()

void mag_pitot_init ( void )

Definition at line 45 of file mag_pitot_uart.c.

References IMU_TO_MAG_PHI, IMU_TO_MAG_PSI, IMU_TO_MAG_THETA, mag_pitot, and orientationSetEulers_f().

Here is the call graph for this function:

◆ mag_pitot_parse_msg()

void mag_pitot_parse_msg ( void )
inlinestatic

Definition at line 56 of file mag_pitot_uart.c.

References get_sys_time_usec(), IMU_MAG_PITOT_ID, int32_rmat_vmult(), mag_pitot, mp_msg_buf, orientationGetRMat_i(), TEMPERATURE_TYPE_DIFF, Int32Vect3::x, Int32Vect3::y, and Int32Vect3::z.

Referenced by mag_pitot_event().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ mag_pitot

struct mag_pitot_t mag_pitot
static
Initial value:
= {
.device = (&((MAG_PITOT_PORT).device)),
.msg_available = false
}

Definition at line 38 of file mag_pitot_uart.c.

Referenced by mag_pitot_event(), mag_pitot_init(), and mag_pitot_parse_msg().

◆ mp_msg_buf

uint8_t mp_msg_buf[128]
static

The message buffer for the Magneto and pitot.

Definition at line 42 of file mag_pitot_uart.c.

Referenced by mag_pitot_event(), and mag_pitot_parse_msg().