Home
last modified time | relevance | path

Searched refs:quat_geomagnetic (Results 1 – 2 of 2) sorted by relevance

/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dhal_outputs.c299 long compass[3], quat_geomagnetic[4]; in inv_get_sensor_type_geomagnetic_rotation_vector() local
302 inv_get_geomagnetic_quaternion(quat_geomagnetic, timestamp); in inv_get_sensor_type_geomagnetic_rotation_vector()
303 if (quat_geomagnetic[0] >= 0) { in inv_get_sensor_type_geomagnetic_rotation_vector()
304 values[0] = quat_geomagnetic[1] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
305 values[1] = quat_geomagnetic[2] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
306 values[2] = quat_geomagnetic[3] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
307 values[3] = quat_geomagnetic[0] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
309 values[0] = -quat_geomagnetic[1] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
310 values[1] = -quat_geomagnetic[2] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
311 values[2] = -quat_geomagnetic[3] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_geomagnetic_rotation_vector()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dhal_outputs.c342 float quat_geomagnetic[4]; in inv_get_sensor_type_geomagnetic_rotation_vector() local
346 inv_get_geomagnetic_quaternion_float(quat_geomagnetic, &timestamp1); in inv_get_sensor_type_geomagnetic_rotation_vector()
348 if (quat_geomagnetic[0] >= .0) { in inv_get_sensor_type_geomagnetic_rotation_vector()
349 values[0] = quat_geomagnetic[1]; in inv_get_sensor_type_geomagnetic_rotation_vector()
350 values[1] = quat_geomagnetic[2]; in inv_get_sensor_type_geomagnetic_rotation_vector()
351 values[2] = quat_geomagnetic[3]; in inv_get_sensor_type_geomagnetic_rotation_vector()
352 values[3] = quat_geomagnetic[0]; in inv_get_sensor_type_geomagnetic_rotation_vector()
354 values[0] = -quat_geomagnetic[1]; in inv_get_sensor_type_geomagnetic_rotation_vector()
355 values[1] = -quat_geomagnetic[2]; in inv_get_sensor_type_geomagnetic_rotation_vector()
356 values[2] = -quat_geomagnetic[3]; in inv_get_sensor_type_geomagnetic_rotation_vector()
[all …]