MPU6050のサンプルプログラム2
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: myConstants.h
- Revision:
- 23:79cdc1432160
- Parent:
- 13:df1e8a650185
--- a/myConstants.h Tue Jun 23 15:23:38 2015 +0000 +++ b/myConstants.h Wed Jun 24 16:16:14 2015 +0000 @@ -18,6 +18,10 @@ /* Pressure Sensor */ #define PRES_LSB_TO_HPA 0.000244140625f // hPa/LSB (1/4096 +inline float TempLsbToDeg(short int temp) { + return (42.5f + (float)temp * 0.00208333333f); // degree_C = 42.5 + temp / 480; +} + /* GPS */ #define GPS_SQ_E 0.00669437999f // (第一離心率)^2 #define GPS_A 6378137.0f // 長半径(赤道半径)(m)