I am actually communicating with the INS through UART from STM32 MCU.
I perform the following initialisation and use polling mode to get updates from the AHRS. I went for polling mode, because I was using FreeRTOS and was worried interrupt will take lot of CPU time .
Initialisation procedure as follows :
- Set Idle Mode.
- Disable IMU and AKF stream.
- Capture Gyro bias
- 20 secs delay.
- Set IMU msg format.
- Set AKF msg format.
- Save current msg format.
- Reset AKF filter.
- set heading zero.
my issue is roll and yaw are correctly showing the change when I change the orientation of the AHRS unit. However when I change PITCH to 90 degrees. I get proper reading in Pitch, But yaw and roll are also significantly changing , this was not the case for pitch and yaw.
Any advice on how to resolve this ?