Searched refs:rad2deg (Results 1 – 3 of 3) sorted by relevance
/aosp12/frameworks/native/services/sensorservice/ |
H A D | OrientationSensor.cpp | 53 const float rad2deg = 180 / M_PI; in process() local 55 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in process() 56 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in process() 57 g[2] = asinf ( R[2][0]) * rad2deg; in process()
|
/aosp12/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 397 float rad2deg = (float)(180.0 / M_PI); in google_orientation_geomagnetic() local 400 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation_geomagnetic() 401 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in google_orientation_geomagnetic() 402 g[2] = asinf ( R[2][0]) * rad2deg; in google_orientation_geomagnetic() 428 float rad2deg = (float)(180.0 / M_PI); in google_orientation_6_axis() local 433 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation_6_axis() 434 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in google_orientation_6_axis() 435 g[2] = asinf ( R[2][0]) * rad2deg; in google_orientation_6_axis() 459 float rad2deg = (float)(180.0 / M_PI); in google_orientation() local 464 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation() [all …]
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 443 float rad2deg = (float)(180.0 / M_PI); in google_orientation_geomagnetic() local 446 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation_geomagnetic() 447 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in google_orientation_geomagnetic() 448 g[2] = asinf ( R[2][0]) * rad2deg; in google_orientation_geomagnetic() 474 float rad2deg = (float)(180.0 / M_PI); in google_orientation_6_axis() local 479 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation_6_axis() 480 g[1] = atan2f(-R[2][1], R[2][2]) * rad2deg; in google_orientation_6_axis() 481 g[2] = asinf ( R[2][0]) * rad2deg; in google_orientation_6_axis() 505 float rad2deg = (float)(180.0 / M_PI); in google_orientation() local 510 g[0] = atan2f(-R[1][0], R[0][0]) * rad2deg; in google_orientation() [all …]
|