Peripherals: make IMU accelerometerRawToReading return G's.
This commit is contained in:
parent
5880f967d7
commit
c9a08c26ea
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user