| Index: device/generic_sensor/generic_sensor_consts.h
|
| diff --git a/device/generic_sensor/generic_sensor_consts.h b/device/generic_sensor/generic_sensor_consts.h
|
| index 91b0c18853a784ce6687b73ef080e0d30399a1d4..63e3e1851d112b4b0cc5fed412d1e1ab5d88942b 100644
|
| --- a/device/generic_sensor/generic_sensor_consts.h
|
| +++ b/device/generic_sensor/generic_sensor_consts.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
|
| #define DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
|
|
|
| +#define _USE_MATH_DEFINES
|
| #include <math.h>
|
|
|
| namespace device {
|
| @@ -18,6 +19,9 @@ constexpr double kRadiansInDegreesPerSecond = M_PI / 180.0;
|
| // Required for conversion from Gauss to uT.
|
| constexpr double kMicroteslaInGauss = 100.0;
|
|
|
| +// Required for conversion from Milligauss to Microtesla.
|
| +constexpr double kMicroteslaInMilligauss = 0.1;
|
| +
|
| // Default rate for returning value of the ambient light sensor.
|
| constexpr int kDefaultAmbientLightFrequencyHz = 5;
|
|
|
|
|