mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
switch remaining boards to new InvenSense IMU drivers
This commit is contained in:
@@ -30,7 +30,7 @@ px4_add_board(
|
||||
#heater
|
||||
#imu # all available imu drivers
|
||||
imu/bmi088
|
||||
imu/mpu6000
|
||||
imu/invensense/icm20602
|
||||
imu/icm20948
|
||||
irlock
|
||||
lights/blinkm
|
||||
|
||||
@@ -6,17 +6,15 @@
|
||||
adc start
|
||||
|
||||
# Internal ICM-20602
|
||||
mpu6000 -R 10 -s -T 20602 start
|
||||
icm20602 -s -R 4 start
|
||||
|
||||
# Internal ICM-20689
|
||||
#icm20689 -s -R 10 start
|
||||
|
||||
# Internal SPI bus BMI088 accel
|
||||
# Internal SPI bus BMI088 accel & gyro
|
||||
bmi088 -A -R 10 -s start
|
||||
|
||||
# Internal SPI bus BMI088 gyro
|
||||
bmi088 -G -R 10 -s start
|
||||
|
||||
# Internal ICM-20948
|
||||
icm20948 -s -R 10 start
|
||||
|
||||
# Interal DPS310 (barometer)
|
||||
dps310 -s start
|
||||
|
||||
@@ -25,3 +23,4 @@ ist8310 -X start
|
||||
hmc5883 -T -X start
|
||||
qmc5883 -X start
|
||||
lis3mdl -X start
|
||||
rm3100 -X start
|
||||
|
||||
@@ -38,8 +38,7 @@
|
||||
constexpr px4_spi_bus_t px4_spi_buses[SPI_BUS_MAX_BUS_ITEMS] = {
|
||||
initSPIBus(SPI::Bus::SPI1, {
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20602, SPI::CS{GPIO::PortC, GPIO::Pin2}, SPI::DRDY{GPIO::PortD, GPIO::Pin15}),
|
||||
// ICM-20948
|
||||
initSPIDevice(DRV_DEVTYPE_UNUSED, SPI::CS{GPIO::PortE, GPIO::Pin15}, SPI::DRDY{GPIO::PortE, GPIO::Pin12}),
|
||||
initSPIDevice(DRV_IMU_DEVTYPE_ICM20948, SPI::CS{GPIO::PortE, GPIO::Pin15}, SPI::DRDY{GPIO::PortE, GPIO::Pin12}),
|
||||
}, {GPIO::PortE, GPIO::Pin3}),
|
||||
initSPIBus(SPI::Bus::SPI2, {
|
||||
initSPIDevice(SPIDEV_FLASH(0), SPI::CS{GPIO::PortD, GPIO::Pin10}),
|
||||
|
||||
@@ -25,8 +25,9 @@ px4_add_board(
|
||||
#dshot
|
||||
gps
|
||||
#imu # all available imu drivers
|
||||
imu/mpu6000
|
||||
imu/mpu9250
|
||||
imu/invensense/icm20602
|
||||
imu/invensense/icm20608g
|
||||
imu/invensense/mpu9250
|
||||
irlock
|
||||
lights/blinkm
|
||||
lights/rgbled
|
||||
|
||||
@@ -5,18 +5,14 @@
|
||||
|
||||
adc start
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -T -X start
|
||||
lis3mdl -X start
|
||||
# Internal SPI bus ICM-20608-G
|
||||
icm20608g -s -R 8 start
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
mpu6000 -s -R 2 -T 20608 start
|
||||
# Internal SPI bus ICM-20602
|
||||
icm20602 -s -R 8 start
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
mpu6000 -s -R 2 -T 20602 start
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
mpu9250 -s -R 2 start
|
||||
# Internal SPI bus mpu9250
|
||||
mpu9250 -s -R 8 start
|
||||
|
||||
# Possible external compasses
|
||||
ist8310 -X start
|
||||
|
||||
@@ -26,8 +26,9 @@ px4_add_board(
|
||||
gps
|
||||
#heater
|
||||
#imu # all available imu drivers
|
||||
imu/mpu6000
|
||||
imu/mpu9250
|
||||
imu/invensense/icm20602
|
||||
imu/invensense/icm20608g
|
||||
imu/invensense/mpu9250
|
||||
irlock
|
||||
lights/blinkm
|
||||
lights/rgbled
|
||||
|
||||
@@ -11,14 +11,14 @@ lis3mdl -X start
|
||||
ist8310 -X start
|
||||
qmc5883 -X start
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
mpu6000 -s -R 2 -T 20608 start
|
||||
# Internal SPI bus ICM-20608-G
|
||||
icm20608g -s -R 8 start
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
mpu6000 -s -R 2 -T 20602 start
|
||||
# Internal SPI bus ICM-20602
|
||||
icm20602 -s -R 8 start
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
mpu9250 -s -R 2 start
|
||||
# Internal SPI bus mpu9250
|
||||
mpu9250 -s -R 8 start
|
||||
|
||||
# Internal SPI
|
||||
ms5611 -s start
|
||||
|
||||
Reference in New Issue
Block a user