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

Side by Side Diff: services/device/generic_sensor/generic_sensor_consts.h

Issue 2865263002: Move //device/generic_sensor to be part of the internal implementation of the Device Service. (Closed)
Patch Set: code rebase Created 3 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_ 5 #ifndef SERVICES_DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
6 #define DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_ 6 #define SERVICES_DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
7 7
8 #define _USE_MATH_DEFINES 8 #define _USE_MATH_DEFINES
9 #include <math.h> 9 #include <math.h>
10 10
11 namespace device { 11 namespace device {
12 12
13 // Required for conversion from G/s^2 to m/s^2 13 // Required for conversion from G/s^2 to m/s^2
14 constexpr double kMeanGravity = 9.80665; 14 constexpr double kMeanGravity = 9.80665;
15 15
16 // Required for conversion from deg to rad 16 // Required for conversion from deg to rad
(...skipping 12 matching lines...) Expand all
29 constexpr int kDefaultAccelerometerFrequencyHz = 10; 29 constexpr int kDefaultAccelerometerFrequencyHz = 10;
30 30
31 // Default rate for returning value of the gyroscope sensor. 31 // Default rate for returning value of the gyroscope sensor.
32 constexpr int kDefaultGyroscopeFrequencyHz = 10; 32 constexpr int kDefaultGyroscopeFrequencyHz = 10;
33 33
34 // Default rate for returning value of the magnetometer sensor. 34 // Default rate for returning value of the magnetometer sensor.
35 constexpr int kDefaultMagnetometerFrequencyHz = 10; 35 constexpr int kDefaultMagnetometerFrequencyHz = 10;
36 36
37 } // namespace device 37 } // namespace device
38 38
39 #endif // DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_ 39 #endif // SERVICES_DEVICE_GENERIC_SENSOR_GENERIC_SENSOR_CONSTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698