# Drone yaws in sudden when switch from offboard to auto.land mode

**URL:** <https://discuss.px4.io/t/drone-yaws-in-sudden-when-switch-from-offboard-to-auto-land-mode/34667>\
**Category:** Flight Testing & Log Analysis\
**Created:** [October 5, 2023, 6:37pm UTC](https://discuss.px4.io/t/drone-yaws-in-sudden-when-switch-from-offboard-to-auto-land-mode/34667 "2023-10-05T18:37:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![droneGuy](https://discuss.px4.io/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@droneGuy](https://discuss.px4.io/u/droneGuy)\
**Post date:** [October 5, 2023, 6:37pm UTC](https://discuss.px4.io/t/drone-yaws-in-sudden-when-switch-from-offboard-to-auto-land-mode/34667/1 "2023-10-05T18:37:37Z")

</div>

My program triggers auto.land in offboard mode. The drone is able to descend nicely until when it is very close to the ground, it yaws in a sudden. By looking at the log, I found that at the moment when the drone switching from offboard mode to land mode, the yaw setpoint changes immediately; and I also found that the yaw setpoint is been set to the east. Does anybody knows why the yaw setpoint changes when switching to land mode?

 ![image](https://discuss.px4.io/uploads/default/original/2X/2/28d083d1cbd46e7efef932579d804fec2b7a3c71.png)

The log is here: [https://review.px4.io/plot\_app?log=9e75b2cb-e918-4565-9068-c6bca37e84e9](https://review.px4.io/plot_app?log=9e75b2cb-e918-4565-9068-c6bca37e84e9)
