How to Extract Gimbal Yaw, Pitch, Roll using pymavlink?

I’m working on a project where I need to extract the gimbal’s orientation parameters (Yaw, Pitch, Roll) from a Pixhawk using pymavlink. I’ve been trying to read various MAVLink messages like MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW , but I haven’t been able to reliably capture the gimbal’s orientation data.

1 Like

There is no way to extract. Brushless motor determine the position by encoder or most commonly an accelerometer. You just tell your motor driver what position that is all. If you want to know the exact position then you need to do more than just flight controller, you might need a microprocessor.