Showing the changes to interface/src/SerialInterface.cpp (1 of 6 files). Show all
Unified · Split
| @@ -187,7 +187,7 @@ void SerialInterface::readData() { · 186 unmodified lines | ||
| 187 | 187 | convertHexToInt(sensorBuffer + 10, accelYRate); |
| 188 | 188 | convertHexToInt(sensorBuffer + 14, accelXRate); |
| 189 | 189 | |
| 190 | − const float LSB_TO_METERS_PER_SECOND2 = 1.f / 16384.f * 9.80665f; | |
| 190 | + const float LSB_TO_METERS_PER_SECOND2 = 1.f / 16384.f * GRAVITY_EARTH; | |
| 191 | 191 | // From MPU-9150 register map, with setting on |
| 192 | 192 | // highest resolution = +/- 2G |
| 193 | 193 | |