mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix 2000dps gyro rate setbits
This commit is contained in:
parent
57d7a00261
commit
fde165b4f1
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user