|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
36 #define MPU9250_DEFAULT_SMPLRT_DIV 0
37 #define MPU9250_DEFAULT_FS_SEL MPU9250_GYRO_RANGE_1000
39 #define MPU9250_DEFAULT_AFS_SEL MPU9250_ACCEL_RANGE_8G
41 #define MPU9250_DEFAULT_DLPF_ACCEL_CFG MPU9250_DLPF_ACCEL_41HZ
43 #define MPU9250_DEFAULT_DLPF_GYRO_CFG MPU9250_DLPF_GYRO_41HZ
45 #define MPU9250_DEFAULT_INT_CFG 1
47 #define MPU9250_DEFAULT_CLK_SEL 1
51 #ifndef MPU9250_I2C_NB_SLAVES
52 #define MPU9250_I2C_NB_SLAVES 5
60 #define MPU9250_GYRO_SENS_250 0.544883
61 #define MPU9250_GYRO_SENS_250_NUM 19327
62 #define MPU9250_GYRO_SENS_250_DEN 35470
63 #define MPU9250_GYRO_SENS_500 1.08977
64 #define MPU9250_GYRO_SENS_500_NUM 57663
65 #define MPU9250_GYRO_SENS_500_DEN 52913
66 #define MPU9250_GYRO_SENS_1000 2.17953
67 #define MPU9250_GYRO_SENS_1000_NUM 18271
68 #define MPU9250_GYRO_SENS_1000_DEN 8383
69 #define MPU9250_GYRO_SENS_2000 4.35906
70 #define MPU9250_GYRO_SENS_2000_NUM 36542
71 #define MPU9250_GYRO_SENS_2000_DEN 8383
83 #define MPU9250_ACCEL_SENS_2G 0.613125
84 #define MPU9250_ACCEL_SENS_2G_NUM 981
85 #define MPU9250_ACCEL_SENS_2G_DEN 1600
86 #define MPU9250_ACCEL_SENS_4G 1.22625
87 #define MPU9250_ACCEL_SENS_4G_NUM 981
88 #define MPU9250_ACCEL_SENS_4G_DEN 800
89 #define MPU9250_ACCEL_SENS_8G 2.4525
90 #define MPU9250_ACCEL_SENS_8G_NUM 981
91 #define MPU9250_ACCEL_SENS_8G_DEN 400
92 #define MPU9250_ACCEL_SENS_16G 4.905
93 #define MPU9250_ACCEL_SENS_16G_NUM 981
94 #define MPU9250_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
@ MPU9250_CONF_INT_ENABLE
uint8_t clk_sel
Clock select.
enum Mpu9250MstClk i2c_mst_clk
MPU I2C master clock speed.
Mpu9250I2cSlaveConfigure configure
const int32_t MPU9250_ACCEL_SENS_FRAC[4][2]
enum Mpu9250GyroRanges gyro_range
deg/s Range
uint8_t nb_bytes
number of bytes to read starting with MPU9250_REG_INT_STATUS
Mpu9250MstClk
I2C Master clock.
enum Mpu9250ConfStatus init_status
init status
enum Mpu9250DLPFAccel dlpf_accel_cfg
Digital Low Pass Filter for accelerometer.
enum Mpu9250DLPFGyro dlpf_gyro_cfg
Digital Low Pass Filter for gyroscope.
Mpu9250GyroRanges
Selectable gyro range.
void mpu9250_send_config(Mpu9250ConfigSet mpu_set, void *mpu, struct Mpu9250Config *config)
Configuration sequence called once before normal use.
@ MPU9250_CONF_DLPF_ACCEL
const int32_t MPU9250_GYRO_SENS_FRAC[4][2]
static const struct usb_config_descriptor config
const float MPU9250_ACCEL_SENS[4]
@ MPU9250_CONF_USER_RESET
bool i2c_bypass
Bypass MPU I2C.
bool mpu9250_configure_i2c_slaves(Mpu9250ConfigSet mpu_set, void *mpu)
Configure I2C slaves of the MPU.
enum Mpu9250AccelRanges accel_range
g Range
void mpu9250_set_default_config(struct Mpu9250Config *c)
#define MPU9250_I2C_NB_SLAVES
uint8_t nb_slaves
number of used I2C slaves
bool(* Mpu9250I2cSlaveConfigure)(Mpu9250ConfigSet mpu_set, void *mpu)
function prototype for configuration of a single I2C slave
uint8_t smplrt_div
Sample rate divider.
Mpu9250AccelRanges
Selectable accel range.
void(* Mpu9250ConfigSet)(void *mpu, uint8_t _reg, uint8_t _val)
Configuration function prototype.
const float MPU9250_GYRO_SENS[4]
struct Mpu9250I2cSlave slaves[MPU9250_I2C_NB_SLAVES]
I2C slaves.
bool initialized
config done flag
@ MPU9250_CONF_I2C_SLAVES
uint8_t nb_slave_init
number of already configured/initialized slaves
Mpu9250DLPFGyro
Digital Low Pass Filter Options.
uint8_t i2c_mst_delay
MPU I2C slaves delayed sample rate.
bool drdy_int_enable
Enable Data Ready Interrupt.