Read Pitch, Roll and Yaw with Dronekit

Hi all,

I’m looking for a way to read the pitch, roll and yaw angles by dronekit (only read, do not set). The current yaw can be read (and set) by MAV_CMD_CONDITION_YAW over Mavlink. Are there similar commands for the pitch and roll-angles? I could not find anything.

Thanks for your help!

Take a look at the attitude mavlink message. it gives you the info you need.
We use that one in our dronekit scripts.

1 Like

Thanks that helped :slight_smile:

Hi @xfly and @amilcarlucas,
can you give me the exact dronekit command for getting the roll,pitch and yaw?
That would be perfect :slight_smile:

Thanks and regards

You get the values by reading

vehicle = dk.connect(…)

Perfect, thanks a lot @xfly !