From 30bcea73cc88c31fb96bc00963bcb0ffb6e014e9 Mon Sep 17 00:00:00 2001 From: Grant Morphett Date: Wed, 10 Aug 2016 23:20:46 +1000 Subject: [PATCH] PX4: Added detection for MPU6000 on px4slim. --- libraries/AP_BoardConfig/px4_drivers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_BoardConfig/px4_drivers.cpp b/libraries/AP_BoardConfig/px4_drivers.cpp index 7357f3ee51..3b325e0104 100644 --- a/libraries/AP_BoardConfig/px4_drivers.cpp +++ b/libraries/AP_BoardConfig/px4_drivers.cpp @@ -367,8 +367,10 @@ void AP_BoardConfig::px4_start_pixhawk2slim_sensors(void) printf("Found MPU9250 internal\n"); } else if (px4_start_driver(mpu6000_main, "mpu6000", "-R 14 -T 20608 start")) { printf("Found ICM20608 internal\n"); + } else if (px4_start_driver(mpu6000_main, "mpu6000", "-R 14 start")) { + printf("Found MPU6000 internal\n"); } else { - px4_sensor_error("No MPU9250 or ICM20608"); + px4_sensor_error("No MPU9250 or ICM20608 or MPU6000"); } // on Pixhawk2 default IMU temperature to 60