29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
62 #if PPRZLINK_DEFAULT_VER == 2
64 if (pprzlink_get_msg_class_id(
mp_msg_buf) == DL_intermcu_CLASS_ID) {
68 case DL_IMCU_REMOTE_MAG: {
86 case DL_IMCU_REMOTE_BARO: {
87 float pitot_stat = DL_IMCU_REMOTE_BARO_pitot_stat(
mp_msg_buf);
88 float pitot_temp = DL_IMCU_REMOTE_BARO_pitot_temp(
mp_msg_buf);
96 case DL_IMCU_REMOTE_AIRSPEED: {
98 float pitot_ias = DL_IMCU_REMOTE_AIRSPEED_pitot_IAS(
mp_msg_buf);
106 #if PPRZLINK_DEFAULT_VER == 2
Main include for ABI (AirBorneInterface).
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 struct Int32RMat * orientationGetRMat_i(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (int).
static void orientationSetEulers_f(struct OrientationReps *orientation, struct FloatEulers *eulers)
Set vehicle body attitude from euler angles (float).
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.
struct link_device * device
The device which is uses for communication.
struct pprz_transport transport
The transport layer (PPRZ)
struct OrientationReps imu_to_mag
IMU to magneto translation.
API to get/set the generic vehicle states.
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.