Skip to content

Commit 8ecec06

Browse files
author
Suhas
committed
patch taproot!!!!
1 parent 8c02aad commit 8ecec06

File tree

1 file changed

+1
-1
lines changed
  • ut-robomaster/taproot/src/tap/communication/sensors/imu/bmi088

1 file changed

+1
-1
lines changed

ut-robomaster/taproot/src/tap/communication/sensors/imu/bmi088/bmi088.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Bmi088 final_mockable : public Bmi088Data, public AbstractIMU
121121
private:
122122
Drivers *drivers;
123123

124-
inline float getAccelerationSensitivity() const override { return ACC_G_PER_ACC_COUNT; }
124+
inline float getAccelerationSensitivity() const override { return tap::algorithms::ACCELERATION_GRAVITY / ACC_G_PER_ACC_COUNT; }
125125

126126
static constexpr uint16_t RAW_TEMPERATURE_TO_APPLY_OFFSET = 1023;
127127
/// Offset parsed temperature reading by this amount if > RAW_TEMPERATURE_TO_APPLY_OFFSET.

0 commit comments

Comments
 (0)