Hi,
I’m trying to move gimbal using Sphinx like in User guide - 7.7.
I did a very simple example, based on gimbal position instead of gimbal velocity :
with olympe.Drone(DRONE_IP) as drone:
drone.connect()
assert drone(
TakeOff()
>> FlyingStateChanged(state="hovering", _timeout=15)
).wait().success()
# Send a gimbal pitch velocity target while the drone is flying
cameraAction = drone(gimbal.set_target(
gimbal_id=0,
control_mode="position",
yaw_frame_of_reference="none",
yaw=0,
pitch_frame_of_reference="none",
pitch=-90,
roll_frame_of_reference="none",
roll=0,
)).wait()
if not cameraAction.success():
assert False, "Cannot set gimbal velocity target"
# Leaving the with statement scope: implicit drone.disconnect() but that
# is still a good idea to perform the drone disconnection explicitly
assert drone(Landing()).wait().success()
drone.disconnect()
The drone take off, then land with no error from ground side.
On drone ulog, here is what I get :
log.doc (360.5 KB)
Any idea ? Should it work with 2.7 or is it a feature that is not available yet ?
Best,
Clément