I am trying to write a script in Olympe that moves the gimbal to a specific rotation and then takes a picture. I am using gimbal set target. When I send the command, the gimbal starts moving but the next command to take a picture is run immediately without waiting for the gimbal to stop (even though I am using .wait().success()).
Here is what my code looks like, approximately:
drone(set_target(gimbal_id=0, control_mode=“position”, …, pitch=-45.0,…)).wait().success()
Thanks in advance for your help!