When taking off from home to 10 meters high and then to the next 15 meters high waypoint, why did the helicopter sway left and right, as if it could not find the direction

If my take-off altitude is the same as the altitude of the second waypoint, the helicopter can move towards the waypoint steadily

@blue0827ww again, a log showing this behavior is needed to answer your question.

Log file:

firmware 4.0.5
Traditional helicopter ALIGN 550x