|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
37 #define MPU60X0_DEFAULT_SMPLRT_DIV 0
38 #define MPU60X0_DEFAULT_FS_SEL MPU60X0_GYRO_RANGE_2000
40 #define MPU60X0_DEFAULT_AFS_SEL MPU60X0_ACCEL_RANGE_16G
42 #define MPU60X0_DEFAULT_DLPF_CFG MPU60X0_DLPF_98HZ
44 #define MPU60X0_DEFAULT_DLPF_CFG_ACC MPU60X0_DLPF_ACC_99HZ
46 #define MPU60X0_DEFAULT_INT_CFG 1
48 #define MPU60X0_DEFAULT_CLK_SEL 1
52 #ifndef MPU60X0_I2C_NB_SLAVES
53 #define MPU60X0_I2C_NB_SLAVES 5
61 #define MPU60X0_GYRO_SENS_250 0.544883
62 #define MPU60X0_GYRO_SENS_250_NUM 19327
63 #define MPU60X0_GYRO_SENS_250_DEN 35470
64 #define MPU60X0_GYRO_SENS_500 1.08977
65 #define MPU60X0_GYRO_SENS_500_NUM 57663
66 #define MPU60X0_GYRO_SENS_500_DEN 52913
67 #define MPU60X0_GYRO_SENS_1000 2.17953
68 #define MPU60X0_GYRO_SENS_1000_NUM 18271
69 #define MPU60X0_GYRO_SENS_1000_DEN 8383
70 #define MPU60X0_GYRO_SENS_2000 4.35906
71 #define MPU60X0_GYRO_SENS_2000_NUM 36542
72 #define MPU60X0_GYRO_SENS_2000_DEN 8383
84 #define MPU60X0_ACCEL_SENS_2G 0.613125
85 #define MPU60X0_ACCEL_SENS_2G_NUM 981
86 #define MPU60X0_ACCEL_SENS_2G_DEN 1600
87 #define MPU60X0_ACCEL_SENS_4G 1.22625
88 #define MPU60X0_ACCEL_SENS_4G_NUM 981
89 #define MPU60X0_ACCEL_SENS_4G_DEN 800
90 #define MPU60X0_ACCEL_SENS_8G 2.4525
91 #define MPU60X0_ACCEL_SENS_8G_NUM 981
92 #define MPU60X0_ACCEL_SENS_8G_DEN 400
93 #define MPU60X0_ACCEL_SENS_16G 4.905
94 #define MPU60X0_ACCEL_SENS_16G_NUM 981
95 #define MPU60X0_ACCEL_SENS_16G_DEN 200
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
uint8_t nb_bytes
number of bytes to read starting with MPU60X0_REG_INT_STATUS
uint8_t smplrt_div
Sample rate divider.
uint8_t nb_slave_init
number of already configured/initialized slaves
@ MPU60X0_CONF_I2C_SLAVES
enum Mpu60x0GyroRanges gyro_range
deg/s Range
bool drdy_int_enable
Enable Data Ready Interrupt.
enum Mpu60x0MstClk i2c_mst_clk
MPU I2C master clock speed.
@ MPU60X0_CONF_INT_ENABLE
enum Mpu60x0AccelRanges accel_range
g Range
enum Mpu60x0ACCDLPF dlpf_cfg_acc
Digital Low Pass Filter for acceleremoter (ICM devices only)
enum Mpu60x0DLPF dlpf_cfg
Digital Low Pass Filter.
bool(* Mpu60x0I2cSlaveConfigure)(Mpu60x0ConfigSet mpu_set, void *mpu)
function prototype for configuration of a single I2C slave
void(* Mpu60x0ConfigSet)(void *mpu, uint8_t _reg, uint8_t _val)
Configuration function prototype.
void mpu60x0_send_config(Mpu60x0ConfigSet mpu_set, void *mpu, struct Mpu60x0Config *config)
Configuration sequence called once before normal use.
uint8_t clk_sel
Clock select.
Mpu60x0MstClk
I2C Master clock.
Mpu60x0I2cSlaveConfigure configure
const int32_t MPU60X0_GYRO_SENS_FRAC[4][2]
static const struct usb_config_descriptor config
Mpu60x0DLPF
Digital Low Pass Filter Options DLFP is affecting both gyro and accels (on MPU not ICM),...
Mpu60x0Type
MPU60x0 sensor type.
enum Mpu60x0ConfStatus init_status
init status
Mpu60x0GyroRanges
Selectable gyro range.
#define MPU60X0_I2C_NB_SLAVES
uint8_t nb_slaves
number of used I2C slaves
bool i2c_bypass
Bypass MPU I2C.
const int32_t MPU60X0_ACCEL_SENS_FRAC[4][2]
bool mpu60x0_configure_i2c_slaves(Mpu60x0ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
uint8_t i2c_mst_delay
MPU I2C slaves delayed sample rate.
struct Mpu60x0I2cSlave slaves[MPU60X0_I2C_NB_SLAVES]
I2C slaves.
const float MPU60X0_ACCEL_SENS[4]
enum Mpu60x0Type type
The type of sensor (MPU60x0, ICM20608, ...)
Mpu60x0ACCDLPF
Digital Low Pass Filter Options DLFP specifically for the ICM device accelerometer.
@ MPU60X0_CONF_USER_RESET
Mpu60x0AccelRanges
Selectable accel range.
bool initialized
config done flag
void mpu60x0_set_default_config(struct Mpu60x0Config *c)
const float MPU60X0_GYRO_SENS[4]