|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
41 #include "pprzlink/messages.h"
45 #if !defined IMU_GYRO_P_CHAN & !defined IMU_GYRO_Q_CHAN & !defined IMU_GYRO_R_CHAN
46 #define IMU_GYRO_P_CHAN 3
47 #define IMU_GYRO_Q_CHAN 4
48 #define IMU_GYRO_R_CHAN 5
50 #if !defined IMU_ACCEL_X_CHAN & !defined IMU_ACCEL_Y_CHAN & !defined IMU_ACCEL_Z_CHAN
51 #define IMU_ACCEL_X_CHAN 0
52 #define IMU_ACCEL_Y_CHAN 1
53 #define IMU_ACCEL_Z_CHAN 2
55 #if !defined IMU_MAG_X_CHAN & !defined IMU_MAG_Y_CHAN & !defined IMU_MAG_Z_CHAN
56 #define IMU_MAG_X_CHAN 2
57 #define IMU_MAG_Y_CHAN 0
58 #define IMU_MAG_Z_CHAN 1
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
void hmc58xx_event(struct Hmc58xx *hmc)
uint16_t max1168_values[MAX1168_NB_CHAN]
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
int32_t q
in rad/s with INT32_RATE_FRAC
void imu_hbmini_periodic(void)
struct ImuHbmini imu_hbmini
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
void imu_hbmini_init(void)
int32_t p
in rad/s with INT32_RATE_FRAC
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define Max1168Periodic()
volatile uint8_t max1168_status
void imu_scale_gyro(struct Imu *_imu)
#define MAX1168_DATA_AVAILABLE
static void hmc58xx_periodic(struct Hmc58xx *hmc)
convenience function: read or start configuration if not already initialized
arch independent LED (Light Emitting Diodes) API
struct Imu imu
global IMU state
Common code for AP and FBW telemetry.
void hmc58xx_init(struct Hmc58xx *hmc, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Hmc58xx struct and set default config options.
void imu_scale_mag(struct Imu *_imu)
void imu_hbmini_downlink_raw(void)
struct Int32Vect3 mag
magnetometer measurements scaled to 1 in BFP with INT32_MAG_FRAC
struct Int32Vect3 mag_unscaled
unscaled magnetometer measurements
volatile bool data_available
data ready flag
void imu_hbmini_event(void)
int32_t r
in rad/s with INT32_RATE_FRAC
void imu_scale_accel(struct Imu *_imu)
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC