Home
last modified time | relevance | path

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

/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dhal_outputs.c257 long accel[3], quat_6_axis[4]; in inv_get_sensor_type_rotation_vector_6_axis() local
259 inv_get_6axis_quaternion(quat_6_axis, timestamp); in inv_get_sensor_type_rotation_vector_6_axis()
261 if (quat_6_axis[0] >= 0) { in inv_get_sensor_type_rotation_vector_6_axis()
262 values[0] = quat_6_axis[1] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
263 values[1] = quat_6_axis[2] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
264 values[2] = quat_6_axis[3] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
265 values[3] = quat_6_axis[0] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
267 values[0] = -quat_6_axis[1] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
268 values[1] = -quat_6_axis[2] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
269 values[2] = -quat_6_axis[3] * INV_TWO_POWER_NEG_30; in inv_get_sensor_type_rotation_vector_6_axis()
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dhal_outputs.c298 float quat_6_axis[4]; in inv_get_sensor_type_rotation_vector_6_axis() local
301 inv_get_6axis_quaternion_float(quat_6_axis, &timestamp1); in inv_get_sensor_type_rotation_vector_6_axis()
303 if (quat_6_axis[0] >= .0) { in inv_get_sensor_type_rotation_vector_6_axis()
304 values[0] = quat_6_axis[1]; in inv_get_sensor_type_rotation_vector_6_axis()
305 values[1] = quat_6_axis[2]; in inv_get_sensor_type_rotation_vector_6_axis()
306 values[2] = quat_6_axis[3]; in inv_get_sensor_type_rotation_vector_6_axis()
307 values[3] = quat_6_axis[0]; in inv_get_sensor_type_rotation_vector_6_axis()
309 values[0] = -quat_6_axis[1]; in inv_get_sensor_type_rotation_vector_6_axis()
310 values[1] = -quat_6_axis[2]; in inv_get_sensor_type_rotation_vector_6_axis()
311 values[2] = -quat_6_axis[3]; in inv_get_sensor_type_rotation_vector_6_axis()
[all …]