relative_orientation_euler_angles_fusion_algorithm_using_accelerometer.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_GENERIC_SENSOR_RELATIVE_ORIENTATION_EULER_ANGLES_FUSION_ALGORITHM_USING_ACCELEROMETER_H_
  5. #define SERVICES_DEVICE_GENERIC_SENSOR_RELATIVE_ORIENTATION_EULER_ANGLES_FUSION_ALGORITHM_USING_ACCELEROMETER_H_
  6. #include "services/device/generic_sensor/platform_sensor_fusion_algorithm.h"
  7. namespace device {
  8. // Sensor fusion algorithm for implementing RELATIVE_ORIENTATION_EULER_ANGLES
  9. // using ACCELEROMETER.
  10. class RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer
  11. : public PlatformSensorFusionAlgorithm {
  12. public:
  13. RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer();
  14. RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer(
  15. const RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer&) =
  16. delete;
  17. RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer& operator=(
  18. const RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer&) =
  19. delete;
  20. ~RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer() override;
  21. protected:
  22. bool GetFusedDataInternal(mojom::SensorType which_sensor_changed,
  23. SensorReading* fused_reading) override;
  24. };
  25. } // namespace device
  26. #endif // SERVICES_DEVICE_GENERIC_SENSOR_RELATIVE_ORIENTATION_EULER_ANGLES_FUSION_ALGORITHM_USING_ACCELEROMETER_H_