# Sending MAVProxy messages from a python program?

**URL:** <https://discuss.bluerobotics.com/t/sending-mavproxy-messages-from-a-python-program/1515>\
**Category:** Blue Robotics Software\
**Tags:** positioning\
**Created:** [September 21, 2017, 3:31pm UTC](https://discuss.bluerobotics.com/t/sending-mavproxy-messages-from-a-python-program/1515 "2017-09-21T15:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![jwalser](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jwalser/32/2234_2.png) [@jwalser](https://discuss.bluerobotics.com/u/jwalser)\
**Post date:** [March 19, 2018, 4:12pm UTC](https://discuss.bluerobotics.com/t/sending-mavproxy-messages-from-a-python-program/1515/32 "2018-03-19T16:12:16Z")

</div>

If your goal is to hold a specific heading, the solution is not auto mode. You should try stabilize mode or depth hold modes, the autopilot runs it’s own pid controller to maintain the heading in those stabilized modes. Your program can give yaw input until the heading is where you want it, then just set the input to zero (the input is the desired rate of rotation), and the autopilot will take care of holding its current heading.

---

_[View the full topic](https://discuss.bluerobotics.com/t/sending-mavproxy-messages-from-a-python-program/1515)._
