From 1c073c1c716dc41e9b62d3cee6f6c848ab919e11 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 9 May 2013 10:38:02 -0700 Subject: [PATCH] correct the accelerometer sensitivity --- interface/src/SerialInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index 29cee8ba67..83dd981e05 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -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;