STM32Cube breaks IMU

Hello. Unexpected problem. The flight controller on the Ardupilot suddenly started to confuse left and right. As in the picture.

Calibrated again, in different options, in different places. Tried different versions of Ardupilot. I tried to change the angles in the parameters. This problem appeared on three FCs. All of them were downloaded via STM32Cube. After switching to Inav, the orientation was corrected. That is, it turns out that the STM32 Cube spoils the Ardupilot itself.

How can this be fixed?

Hello @AlfaBravo111 welcome to the community,

It can be fixed by setting the correct board orientation parameters. But it could also be an hdef bug.
Which FC model is this exacly?

In the photo - Pixhawk 2. They brought me several FCs for installation. I flashed everything using STM32Cube. Now the “victims” have Matek 743, Matek 405 WTE, SpeedyBee 405 WING

The HUD in the picture is correct. Please describe the problem better.

the correct board orientation parameters - I tried to change it several times and in different variations. Doesn’t help. Reset to default and Full chip erasing does not help.

Did you read this? The problem you are trying to resolve does not exist

2 Likes

You’re the one confusing left and right :slight_smile:
When your craft is rolling left, the horizon will rotate right. The horizon is not your craft.
Same thing when your craft is pitching up, the horizon will move down.

Flightmodes work incorrectly. For example, FBWA - does not compensate, but strengthens the tilt in vertical axis.

Can you post a flight log please?