Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: device/generic_sensor/generic_sensor_consts.h

Issue 2476363003: [sensors][win] Implementation of motion sensors for Win platform (Closed)
Patch Set: Rebased to master Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/generic_sensor/BUILD.gn ('k') | device/generic_sensor/platform_sensor_and_provider_unittest_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « device/generic_sensor/BUILD.gn ('k') | device/generic_sensor/platform_sensor_and_provider_unittest_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698