I would like to take photos of the ground using the camera. I tried to use the gimbal with the method set_target() but it is not working…
Any idea of how i can do it ? Thank you.
Hi @TheoBares,
The set_target()
function is the right way to move the gimbal. You can use it like this to move the gimbal down:
drone = olympe.Drone([Drone_ip])
drone.connect()
drone(gimbal.set_target(
gimbal_id=0,
control_mode="position",
yaw_frame_of_reference="none",
yaw=0.0,
pitch_frame_of_reference="absolute",
pitch=-90.0,
roll_frame_of_reference="none",
roll=0.0,
))
drone.disconnect()
For more information on set_target(), please refer to this documentation. Olympe documentation is available here.
Regards,
Axel
2 Likes
Hello Axelm,
Apparently, I was not using the right frame of reference (I was using the “position” one).
I just tested your solution and it works !
Thank you very much !
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.