Searched refs:quat_geomagnetic (Results 1 – 2 of 2) sorted by relevance
299 long compass[3], quat_geomagnetic[4]; in inv_get_sensor_type_geomagnetic_rotation_vector() local302 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 …]
342 float quat_geomagnetic[4]; in inv_get_sensor_type_geomagnetic_rotation_vector() local346 inv_get_geomagnetic_quaternion_float(quat_geomagnetic, ×tamp1); 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 …]