Pymavlink control both yaw and depth

Hi @Neve,

You’re mixing message receiving and handling logic in your functions here, and it’s causing issues when a targeted handler function is receiving an irrelevant message. I would recommend having a read of this comment for a few different approaches to avoiding this kind of issue :slight_smile:

This thread is also worth a read for gaining an understanding of how MAVLink works, and how Pymavlink receives and processes messages.