Searched refs:quat_6_axis (Results 1 – 2 of 2) sorted by relevance
257 long accel[3], quat_6_axis[4]; in inv_get_sensor_type_rotation_vector_6_axis() local259 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 …]
298 float quat_6_axis[4]; in inv_get_sensor_type_rotation_vector_6_axis() local301 inv_get_6axis_quaternion_float(quat_6_axis, ×tamp1); 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 …]