|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
29 #include "pprzlink/pprz_transport.h"
30 #include "pprzlink/intermcu_msg.h"
44 #if PERIODIC_TELEMETRY
64 #if PERIODIC_TELEMETRY
77 #if PPRZLINK_DEFAULT_VER == 2
79 if (pprzlink_get_msg_class_id(
mp_msg_buf) == DL_intermcu_CLASS_ID) {
83 case DL_IMCU_REMOTE_MAG: {
102 case DL_IMCU_REMOTE_BARO: {
103 float pitot_stat = DL_IMCU_REMOTE_BARO_pitot_stat(
mp_msg_buf);
104 float pitot_temp = DL_IMCU_REMOTE_BARO_pitot_temp(
mp_msg_buf);
112 case DL_IMCU_REMOTE_AIRSPEED: {
114 float pitot_ias = DL_IMCU_REMOTE_AIRSPEED_pitot_IAS(
mp_msg_buf);
122 #if PPRZLINK_DEFAULT_VER == 2
struct pprz_transport transport
The transport layer (PPRZ)
bool msg_available
If we received a message.
static uint8_t mp_msg_buf[128]
The message buffer for the Magneto and pitot.
static void mag_pitot_parse_msg(void)
struct OrientationReps imu_to_mag
IMU to magneto translation.
struct link_device * device
The device which is uses for communication.
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
static const struct usb_device_descriptor dev
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).
struct Imu imu
global IMU state
void int32_rmat_vmult(struct Int32Vect3 *vb, struct Int32RMat *m_a2b, struct Int32Vect3 *va)
rotate 3D vector by rotation matrix.
static void mag_pitot_raw_downlink(struct transport_tx *trans, struct link_device *dev)
void imu_scale_mag(struct Imu *_imu)
static struct Int32RMat * orientationGetRMat_i(struct OrientationReps *orientation)
Get vehicle body attitude rotation matrix (int).
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
static struct mag_pitot_t mag_pitot
#define DefaultPeriodic
Set default periodic telemetry.