Home
last modified time | relevance | path

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

/hal_nxp-3.5.0/mcux/mcux-sdk/middleware/issdk/algorithms/sensorfusion/sources/
Dorientation.c697 void fQuaternionFromRotationVectorDeg(Quaternion *pq, const float rvecdeg[], float fscaling) in fQuaternionFromRotationVectorDeg() argument
708 …fetadeg = fscaling * sqrtf(rvecdeg[CHX] * rvecdeg[CHX] + rvecdeg[CHY] * rvecdeg[CHY] + rvecdeg[CHZ… in fQuaternionFromRotationVectorDeg()
737 pq->q1 = rvecdeg[CHX] * ftmp; // q1 = nx * sin(eta/2) in fQuaternionFromRotationVectorDeg()
738 pq->q2 = rvecdeg[CHY] * ftmp; // q2 = ny * sin(eta/2) in fQuaternionFromRotationVectorDeg()
739 pq->q3 = rvecdeg[CHZ] * ftmp; // q3 = nz * sin(eta/2) in fQuaternionFromRotationVectorDeg()
846 void fRotationVectorDegFromQuaternion(Quaternion *pq, float rvecdeg[]) in fRotationVectorDegFromQuaternion() argument
881 rvecdeg[CHX] = rvecdeg[CHY] = rvecdeg[CHZ] = 0.0F; in fRotationVectorDegFromQuaternion()
887 rvecdeg[CHX] = pq->q1 * ftmp; in fRotationVectorDegFromQuaternion()
888 rvecdeg[CHY] = pq->q2 * ftmp; in fRotationVectorDegFromQuaternion()
889 rvecdeg[CHZ] = pq->q3 * ftmp; in fRotationVectorDegFromQuaternion()
[all …]
Dorientation.h156 const float rvecdeg[], ///< rotation vector in degrees
162 float rvecdeg[] ///< rotation vector in degrees (output)