Q-factor mismatch in ivas_orient_trk_Process_fx() for relativeOrientationRate
Bug description
In the BASOP code, there is an obvious Q-factor mismatch for limiting relativeOrientationRate_fx
BASOP:
Word32 one_fx = ONE_IN_Q30;
move32();
IF( GT_32( relativeOrientationRate_fx, one_fx ) )
{
relativeOrientationRate_fx = 1;
move32();
}
The comparison is in Q30, but the assignment is actually in Q0; should be in Q30, too, in order to match the floating-point code.
The code in float looks like:
if ( relativeOrientationRate > 1.0f )
{
relativeOrientationRate = 1.0f;
}
Edited by multrus