mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 13:43:34 +08:00
A VTOL plane in MC mode has no yaw setpoint during takeoff because of weather-vane. To align for the front transition, the yaw target jumps and caused a step in the controller, making it reach saturation. With this commit, the previous yaw setpoint is set to the current yaw when no yaw setpoint is sent in order to create a smooth yaw trajectory starting at the current orientation when yaw target is suddenly finite. The yawspeed filter also now contains the yaw speed instead of dyaw in order to prevent chattering due to dt jitter.