mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 22:30:35 +08:00
add new invensense/mpu6500 driver for airmind mindpx
This commit is contained in:
@@ -118,6 +118,10 @@ bool param_modify_on_import(const char *name, bson_type_t type, void *value)
|
||||
device_id.devid_s.devtype = DRV_IMU_DEVTYPE_MPU6000;
|
||||
}
|
||||
|
||||
if (device_id.devid_s.devtype == DRV_ACC_DEVTYPE_MPU6500_LEGACY) {
|
||||
device_id.devid_s.devtype = DRV_IMU_DEVTYPE_MPU6500;
|
||||
}
|
||||
|
||||
if (device_id.devid_s.devtype == DRV_ACC_DEVTYPE_MPU9250_LEGACY) {
|
||||
device_id.devid_s.devtype = DRV_IMU_DEVTYPE_MPU9250;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user