Peripherals: make IMU accelerometerRawToReading return G's.

This commit is contained in:
Erki 2021-06-22 16:14:06 +03:00
parent 5880f967d7
commit c9a08c26ea

View File

@ -214,7 +214,7 @@ public:
float accelerometerRawToReading(const std::int16_t bit) const float accelerometerRawToReading(const std::int16_t bit) const
{ {
return float(bit) * accel_fs_to_bit_constants_[std::uint32_t(scale_accel_)]; return (float(bit) * accel_fs_to_bit_constants_[std::uint32_t(scale_accel_)]) * 9.8f;
} }
float gyroRawToReading(const std::int16_t bit) const float gyroRawToReading(const std::int16_t bit) const