mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
Update src/drivers/imu/analog_devices/adis16470/ADIS16470.cpp
Co-authored-by: Kabir Mohammed <kabir@corvus-robotics.com>
This commit is contained in:
@@ -379,7 +379,7 @@ bool ADIS16470::Configure()
|
||||
_px4_accel.set_range(40.f * CONSTANTS_ONE_G);
|
||||
_px4_accel.set_scale(CONSTANTS_ONE_G / 800.f); // scaling 800 LSB/g -> m/s^2 per LSB
|
||||
|
||||
// gyro: ±2000, 10 LSB/°/sec (16-bit format)
|
||||
// gyro: ±2000 °/sec, 10 LSB/°/sec (16-bit format)
|
||||
_px4_gyro.set_range(math::radians(2000.f));
|
||||
_px4_gyro.set_scale(math::radians(1.f / 10.f)); // scaling 10 LSB/°/sec -> rad/s per LSB
|
||||
|
||||
|
||||
Reference in New Issue
Block a user