#include "services/device/generic_sensor/relative_orientation_euler_angles_fusion_algorithm_using_accelerometer.h"
#include <cmath>
#include "base/check_op.h"
#include "base/numerics/angle_conversions.h"
#include "base/numerics/math_constants.h"
#include "services/device/generic_sensor/platform_sensor_fusion.h"
namespace device {
namespace {
void ComputeRelativeOrientationFromAccelerometer(double acceleration_x,
double acceleration_y,
double acceleration_z,
double* alpha_in_degrees,
double* beta_in_degrees,
double* gamma_in_degrees) { … }
}
RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer::
RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer()
: … { … }
RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer::
~RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer() =
default;
bool RelativeOrientationEulerAnglesFusionAlgorithmUsingAccelerometer::
GetFusedDataInternal(mojom::SensorType which_sensor_changed,
SensorReading* fused_reading) { … }
}