HITL Offboard flight - Pitch not following the setpoint

I’m trying to develop a simple offboard control, and I am using the HITL Gazebo Simulator. Sometimes the airplane just shoots up and does not obey the pitch setpoint set by the offboard control. This can be seen in the Pitch Angle plot at around 1:30 in the following log:

https://review.px4.io/plot_app?log=06ac736c-ad07-4f56-bfc1-4eb5c84685d0

Doe anyone have a similar behaviour? Or a possible reason for this? It seems to happen only when taking off. Maybe the PX4’s code overcomes the offboard commands under certain conditions.

Thank you

1 Like