CMSIS-DSP  
CMSIS DSP Software Library
 
Loading...
Searching...
No Matches

Functions

void arm_rotation2quaternion_f32 (const float32_t *pInputRotations, float32_t *pOutputQuaternions, uint32_t nbQuaternions)
 Conversion of a rotation matrix to an equivalent quaternion.
 

Description

Conversions from rotation to quaternion.

Function Documentation

◆ arm_rotation2quaternion_f32()

void arm_rotation2quaternion_f32 ( const float32_t pInputRotations,
float32_t pOutputQuaternions,
uint32_t  nbQuaternions 
)

Conversion of a rotation matrix to an equivalent quaternion.

Conversion of a rotation matrix to equivalent quaternion.

Parameters
[in]pInputRotationspoints to an array 3x3 rotation matrix (in row order)
[out]pOutputQuaternionspoints to an array quaternions
[in]nbQuaternionsnumber of quaternions in the array

q and -q are representing the same rotation. This ambiguity must be taken into account when using the output of this function.