diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-08-20 14:40:15 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-08-20 21:50:47 +0200 |
commit | 54ef57e3f3e9efbe86fadac9de8e67333c95e2a5 (patch) | |
tree | 87458190d51a41c2d3c3cc199f93c64f8fba5b51 /libsensors/sensors.h | |
parent | cc5dde0fa7ee87e2229fe1c22e1f1935fe454dff (diff) | |
download | device_samsung_n7000-54ef57e3f3e9efbe86fadac9de8e67333c95e2a5.zip device_samsung_n7000-54ef57e3f3e9efbe86fadac9de8e67333c95e2a5.tar.gz device_samsung_n7000-54ef57e3f3e9efbe86fadac9de8e67333c95e2a5.tar.bz2 |
sensors: Use Samsung-Sensors
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'libsensors/sensors.h')
-rw-r--r-- | libsensors/sensors.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libsensors/sensors.h b/libsensors/sensors.h index 1cfca89..e1901ba 100644 --- a/libsensors/sensors.h +++ b/libsensors/sensors.h @@ -86,15 +86,15 @@ __BEGIN_DECLS // conversion of acceleration data to SI units (m/s^2) #define RANGE_A (2*GRAVITY_EARTH) -#define CONVERT_A (GRAVITY_EARTH / LSB / NUMOFACCDATA) -#define CONVERT_A_X (CONVERT_A) -#define CONVERT_A_Y (-CONVERT_A) -#define CONVERT_A_Z (-CONVERT_A) +#define CONVERT_A (1.0f/1000.0f) * (GRAVITY_EARTH / LSB / NUMOFACCDATA) +#define CONVERT_A_X (-CONVERT_A) +#define CONVERT_A_Y (CONVERT_A) +#define CONVERT_A_Z (CONVERT_A) // conversion of magnetic data to uT units -#define CONVERT_M (1.0f/16.0f) -#define CONVERT_M_X (-CONVERT_M) -#define CONVERT_M_Y (-CONVERT_M) +#define CONVERT_M (1.0f/1000.0f) +#define CONVERT_M_X (CONVERT_M) +#define CONVERT_M_Y (CONVERT_M) #define CONVERT_M_Z (CONVERT_M) /* conversion of orientation data to degree units */ |