Servers by jDrones

Wrong attitude at startup

Hi all,
on my drone (plane) I had to mount the pixhawk with a different orientation because of space constraints.
The current orientation is as follows:

  • the arrow on the pixhawk points left
  • the big multi-color led points toward the nose of the plane
  • the micro usb port points down

According to this, I set the AHRS_ORIENTATION variable to be: ROTATION_ROLL_90_YAW_270.
The orientation I’ve selected seems to be fine: if I rotate the fuselage, the attitude estimation shown on Mission Planner is right.
However, I’ve noticed that, despite selecting ROTATION_ROLL_90_YAW_270 as initial attitude, the initial values of roll is wrong and therefore the filter requires few seconds to converge to the correct attitude.

I’ve also tried to modify the initial value of the orientation on the InertialSensor.cpp class (see but it didn’t help.

Here is a log file:

Thank you.

Servers by jDrones