MPUとHMCでうごくかもver

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by hiroya taura

myConstants.h

Committer:
ojan
Date:
2015-05-24
Revision:
1:6cd6d2760856
Parent:
0:bc6f14fc60c7
Child:
3:5358a691a100

File content as of revision 1:6cd6d2760856:

#pragma once

#define NEARLY_ZERO         0.000001f
#define ZERO_TOLERANCE      0.001f
#define RAD_TO_DEG          57.2957795f             // 180 / π
#define DEG_TO_RAD          0.0174532925f           // π / 180
#define ACC_LSB_TO_G        0.0000610351562f        // g/LSB (1/2^14
#define G_TO_MPSS           9.8f                    // (m/s^2)/g
//#define GYRO_LSB_TO_DEG     0.0304878048f          // deg/LSB (1/32.8
#define GYRO_LSB_TO_DEG     0.0152671755f          // deg/LSB (1/65.5
//#define GYRO_LSB_TO_DEG     0.00763358778f          // deg/LSB (1/131
#define PRES_LSB_TO_HPA     0.000244140625f         // hPa/LSB (1/4096

#define MAG_LSB_TO_GAUSS    0.00092f                // Gauss/LSB
#define MAG_MAGNITUDE       0.46f                   // Magnitude of GeoMagnetism (Gauss)
#define MAG_SIN             -0.754709580f            // Sin-Value of Inclination