adis16470: fix gyro scaling

This commit is contained in:
Daniel Agar 2022-03-09 09:40:18 -05:00
parent 69560bd4f4
commit b66dd5ffa6

View File

@ -377,7 +377,7 @@ bool ADIS16470::Configure()
_px4_accel.set_scale(CONSTANTS_ONE_G / 2048.f);
_px4_accel.set_range(40.f * CONSTANTS_ONE_G);
_px4_gyro.set_scale(math::radians(2000.f / 32768.f));
_px4_gyro.set_scale(math::radians(1.f / 0.1f)); // 1 LSB = 0.1°/sec
_px4_gyro.set_range(math::radians(2000.f));
_px4_accel.set_scale(1.25f * CONSTANTS_ONE_G / 1000.0f); // accel 1.25 mg/LSB