29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
44 #if PERIODIC_TELEMETRY
57 pprz_transport_init(&mag_pitot.
transport);
64 #if PERIODIC_TELEMETRY
79 case DL_IMCU_REMOTE_MAG: {
98 case DL_IMCU_REMOTE_BARO: {
99 float pitot_stat = DL_IMCU_REMOTE_BARO_pitot_stat(
mp_msg_buf);
100 float pitot_temp = DL_IMCU_REMOTE_BARO_pitot_temp(
mp_msg_buf);
108 case DL_IMCU_REMOTE_AIRSPEED: {
110 float pitot_ias = DL_IMCU_REMOTE_AIRSPEED_pitot_IAS(
mp_msg_buf);
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
static struct Int32RMat * orientationGetRMat_i(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (int).
struct OrientationReps imu_to_mag
IMU to magneto translation.
static void mag_pitot_raw_downlink(struct transport_tx *trans, struct link_device *dev)
Periodic telemetry system header (includes downlink utility and generated code).
Main include for ABI (AirBorneInterface).
struct Imu imu
global IMU state
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
void int32_rmat_vmult(struct Int32Vect3 *vb, struct Int32RMat *m_a2b, struct Int32Vect3 *va)
rotate 3D vector by rotation matrix.
static void mag_pitot_parse_msg(void)
#define DefaultPeriodic
Set default periodic telemetry.
static struct mag_pitot_t mag_pitot
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
Inertial Measurement Unit interface.
static const struct usb_device_descriptor dev
bool msg_available
If we received a message.
void imu_scale_mag(struct Imu *_imu)
API to get/set the generic vehicle states.
struct pprz_transport transport
The transport layer (PPRZ)
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
struct link_device * device
The device which is uses for communication.
static uint8_t mp_msg_buf[128]
The message buffer for the Magneto and pitot.
int8_t register_periodic_telemetry(struct periodic_telemetry *_pt, uint8_t _id, telemetry_cb _cb)
Register a telemetry callback function.
static void orientationSetEulers_f(struct OrientationReps *orientation, struct FloatEulers *eulers)
Set vehicle body attitude from euler angles (float).