mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
correct the accelerometer sensitivity
This commit is contained in:
parent
f95ba24f21
commit
1c073c1c71
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ void SerialInterface::readData() {
|
|||
convertHexToInt(sensorBuffer + 10, accelYRate);
|
||||
convertHexToInt(sensorBuffer + 14, accelZRate);
|
||||
|
||||
const float LSB_TO_METERS_PER_SECOND = 1.f / 2048.f;
|
||||
const float LSB_TO_METERS_PER_SECOND = 1.f / 16384.f;
|
||||
|
||||
_lastAccelX = ((float) accelXRate) * LSB_TO_METERS_PER_SECOND;
|
||||
_lastAccelY = ((float) accelYRate) * LSB_TO_METERS_PER_SECOND;
|
||||
|
|
Loading…
Reference in a new issue