Home | History | Annotate | Download | only in libsensors

Lines Matching refs:quat

662     float quat[4];
667 r = inv_get_float_array(INV_QUATERNION, quat);
676 norm = quat[1] * quat[1] + quat[2] * quat[2] + quat[3] * quat[3]
683 quat[1] = quat[1] * inv_norm;
684 quat[2] = quat[2] * inv_norm;
685 quat[3] = quat[3] * inv_norm;
688 if (quat[0] < 0.0) {
689 quat[1] = -quat[1];
690 quat[2] = -quat[2];
691 quat[3] = -quat[3];
694 s->gyro.v[0] = quat[1];
695 s->gyro.v[1] = quat[2];
696 s->gyro.v[2] = quat[3];