mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 21:43:33 +08:00
Fix 2000dps gyro rate setbits
This commit is contained in:
@@ -1040,7 +1040,7 @@ BMI160::set_gyro_range(unsigned max_dps)
|
|||||||
} else if (max_dps <= 2000) {
|
} else if (max_dps <= 2000) {
|
||||||
max_gyro_dps = 2000;
|
max_gyro_dps = 2000;
|
||||||
lsb_per_dps = 16.4;
|
lsb_per_dps = 16.4;
|
||||||
setbits |= BMI_GYRO_RANGE_1000_DPS;
|
setbits |= BMI_GYRO_RANGE_2000_DPS;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user