mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 23:10:46 +08:00
Fix 2000dps gyro rate setbits
This commit is contained in:
1 parent
57d7a00261
commit
fde165b4f1
1 file changed
+1
-1
@@ -1040,7 +1040,7 @@ BMI160::set_gyro_range(unsigned max_dps)
|
||||
} else if (max_dps <= 2000) {
|
||||
max_gyro_dps = 2000;
|
||||
lsb_per_dps = 16.4;
|
||||
setbits |= BMI_GYRO_RANGE_1000_DPS;
|
||||
setbits |= BMI_GYRO_RANGE_2000_DPS;
|
||||
|
||||
} else {
|
||||
return -EINVAL;
|
||||
|
||||
Reference in new issue
Block a user