|
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"
44 #if !defined KROOZ_LOWPASS_FILTER && !defined KROOZ_SMPLRT_DIV
45 #define KROOZ_LOWPASS_FILTER MPU60X0_DLPF_256HZ
46 #define KROOZ_SMPLRT_DIV 1
56 #if IMU_KROOZ_USE_ACCEL_MEDIAN_FILTER
76 #if IMU_KROOZ_USE_ACCEL_MEDIAN_FILTER
108 #if IMU_KROOZ_USE_ACCEL_MEDIAN_FILTER
struct Int32Rates gyro_unscaled
unscaled gyroscope measurements
uint8_t smplrt_div
Sample rate divider.
struct Int32Vect3 accel_sum
void hmc58xx_start_configure(struct Hmc58xx *hmc)
void hmc58xx_event(struct Hmc58xx *hmc)
void imu_krooz_periodic(void)
#define VECT3_SMUL(_vo, _vi, _s)
enum Mpu60x0GyroRanges gyro_range
deg/s Range
struct Int32Vect3 accel
accelerometer measurements in m/s^2 in BFP with INT32_ACCEL_FRAC
bool drdy_int_enable
Enable Data Ready Interrupt.
int32_t q
in rad/s with INT32_RATE_FRAC
#define IMU_KROOZ_ACCEL_AVG_FILTER
#define VECT3_SDIV(_vo, _vi, _s)
void mpu60x0_i2c_start_configure(struct Mpu60x0_I2c *mpu)
void imu_krooz_sd_arch_init(void)
enum Mpu60x0AccelRanges accel_range
g Range
enum Mpu60x0DLPF dlpf_cfg
Digital Low Pass Filter.
#define VECT3_ADD(_a, _b)
struct Int32Vect3 accel_unscaled
unscaled accelerometer measurements
uint32_t get_sys_time_usec(void)
Get the time in microseconds since startup.
int32_t p
in rad/s with INT32_RATE_FRAC
#define RATES_ASSIGN(_ra, _p, _q, _r)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define KROOZ_ACCEL_RANGE
void mpu60x0_i2c_init(struct Mpu60x0_I2c *mpu, struct i2c_periph *i2c_p, uint8_t addr)
struct ImuKrooz imu_krooz
void imu_scale_gyro(struct Imu *_imu)
void mpu60x0_i2c_event(struct Mpu60x0_I2c *mpu)
struct MedianFilter3Int median_mag
void hmc58xx_read(struct Hmc58xx *hmc)
arch independent LED (Light Emitting Diodes) API
struct Mpu60x0Config config
void mpu60x0_i2c_read(struct Mpu60x0_I2c *mpu)
#define RATES_ADD(_a, _b)
struct Imu imu
global IMU state
Common code for AP and FBW telemetry.
void imu_krooz_event(void)
void hmc58xx_init(struct Hmc58xx *hmc, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Hmc58xx struct and set default config options.
void imu_krooz_init(void)
void imu_krooz_downlink_raw(void)
union Mpu60x0_I2c::@331 data_accel
struct Int32Vect3 accel_filtered
void imu_scale_mag(struct Imu *_imu)
#define KROOZ_LOWPASS_FILTER
union Mpu60x0_I2c::@332 data_rates
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
#define VECT3_ASSIGN(_a, _x, _y, _z)
volatile bool data_available
data ready flag
int32_t r
in rad/s with INT32_RATE_FRAC
void imu_scale_accel(struct Imu *_imu)
bool initialized
config done flag
#define VECT3_COPY(_a, _b)
struct Int32Rates gyro
gyroscope measurements in rad/s in BFP with INT32_RATE_FRAC
bool initialized
config done flag
struct Int32Rates rates_sum