IMU
Fork of LSM9DS0 by
Diff: LSM9DS0.cpp
- Revision:
- 2:5556e6fb99f5
- Parent:
- 0:3a1dce39106c
- Child:
- 3:8b2887ac142a
--- a/LSM9DS0.cpp Mon Jan 26 06:38:38 2015 +0000 +++ b/LSM9DS0.cpp Mon Feb 02 21:47:14 2015 +0000 @@ -141,7 +141,7 @@ // Temperature is a 12-bit signed integer temperature_raw = (((int16_t) temp[1] << 12) | temp[0] << 4 ) >> 4; - temperature_c = (float)temperature_raw / 8.0; + temperature_c = (float)temperature_raw / 8.0 + 25; temperature_f = temperature_c * 1.8 + 32; }