mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
drivers/mpu6000: add default product ID case
This commit is contained in:
committed by
Lorenz Meier
parent
3e5cd26777
commit
508d6d2b4f
@@ -418,6 +418,9 @@ MPU6000::init()
|
||||
case MPU6000_REV_D8:
|
||||
case MPU6000_REV_D9:
|
||||
case MPU6000_REV_D10:
|
||||
// default case to cope with new chip revisions, which
|
||||
// presumably won't have the accel scaling bug
|
||||
default:
|
||||
// Accel scale 8g (4096 LSB/g)
|
||||
write_reg(MPUREG_ACCEL_CONFIG, 2 << 3);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user