29#include "pprzlink/pprz_transport.h"
30#include "pprzlink/intermcu_msg.h"
39 .device = (&((MAG_PITOT_PORT).device)),
47 pprz_transport_init(&
mag_pitot.transport);
63#if PPRZLINK_DEFAULT_VER == 2
65 if (pprzlink_get_msg_class_id(
mp_msg_buf) == DL_intermcu_CLASS_ID) {
69 case DL_IMCU_REMOTE_MAG: {
87 case DL_IMCU_REMOTE_BARO: {
88 float pitot_stat = DL_IMCU_REMOTE_BARO_pitot_stat(
mp_msg_buf);
89 float pitot_temp = DL_IMCU_REMOTE_BARO_pitot_temp(
mp_msg_buf);
97 case DL_IMCU_REMOTE_AIRSPEED: {
99 float pitot_ias = DL_IMCU_REMOTE_AIRSPEED_pitot_IAS(
mp_msg_buf);
107#if PPRZLINK_DEFAULT_VER == 2
Main include for ABI (AirBorneInterface).
#define TEMPERATURE_TYPE_DIFF
differential pressure (pitot) sensor
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void int32_rmat_vmult(struct Int32Vect3 *vb, struct Int32RMat *m_a2b, struct Int32Vect3 *va)
rotate 3D vector by rotation matrix.
static void orientationSetEulers_f(struct OrientationReps *orientation, struct FloatEulers *eulers)
Set vehicle body attitude from euler angles (float).
static struct Int32RMat * orientationGetRMat_i(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (int).
Inertial Measurement Unit interface.
static void mag_pitot_parse_msg(void)
static uint8_t mp_msg_buf[128]
The message buffer for the Magneto and pitot.
static struct mag_pitot_t mag_pitot
bool msg_available
If we received a message.
API to get/set the generic vehicle states.
Architecture independent timing functions.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.