# Auto fly with a heading of 0

**URL:** <https://discuss.px4.io/t/auto-fly-with-a-heading-of-0/14213>\
**Category:** Uncategorized\
**Created:** [December 6, 2019, 10:49pm UTC](https://discuss.px4.io/t/auto-fly-with-a-heading-of-0/14213 "2019-12-06T22:49:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remo](https://discuss.px4.io/letter_avatar_proxy/v4/letter/r/bb73d2/32.png) [@Remo](https://discuss.px4.io/u/Remo)\
**Post date:** [December 6, 2019, 10:49pm UTC](https://discuss.px4.io/t/auto-fly-with-a-heading-of-0/14213/1 "2019-12-06T22:49:50Z")

</div>

Hi,  
how come that when the navigator publishes a position\_setpoint\_triplet\_s with changed latitude but same longitude results in a heading of around 15°, instead of my desired 0° (fw plane)?  
It’s exact when i want to fly east or west (same latitude), heading is then 90° respectively -90°, but with north and south is shifted by 15° to east.

So for example:  
waypoint\_from\_heading\_and\_distance(lat, lon, 0.0f, 10000.0f, &lat, &lon)  
publish that, and my plane flies with yaw approx 15°.
