Trying to control AnafiAI's gimbal using Olympe (Yaw direction)

Hello,

I’m trying to control AnafiAI’s gimbal using Olympe. I have successfully controlled the Roll and Pitch directions on the actual device, but I’m unable to control the Yaw direction. Please let me know if this is a specification limitation or if there is an issue in the code.

    skyctrl(set_target(
        gimbal_id=0,
        control_mode="position",
        yaw_frame_of_reference="relative", 
        yaw=_yaw,                                            #set float value, failed.
        pitch_frame_of_reference="relative",
        pitch=_pitch,                                           #set float value, success.
        roll_frame_of_reference="relative",  
        roll=_roll                                                  #set float value, success.
    )).wait()

Hi @yoshi,

The Yaw axis is locked. It follows the drone body. You can catch the event axis_lock_state at the connection to see all locking direction (only yaw in our case). You can’t unlock axes with Olympe.

There is another way to unlock the yaw axes. You can create an Air SDK service (in a mission) and send the set_config command to unlock the yaw.

Regards,
Axel

Thank you for your response.
So, the Yaw axis control is locked by default, I see.
I appreciate your advice on how to address this in AirSDK.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.