mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-12 23:20:34 +08:00
e416a8cb83
This resolves a bug where a takeoff would go sideways instead of straight up. What happened was that the position setpoint got shifted around even though there was actually no real setpoint set but only a setpoint of type IDLE. This then lead to a position setpoint far away from the takeoff point and therefore scary takeoffs. This fix prevents the part of the position controller which moves/integrates the position setpoint from running in the case of an idle setpoint. This bug could be reproduced by switching the vehicle to mission mode without a valid mission, then switch to hold mode, and then send the arm and takeoff command.