How to set the speed for moveBy

I created a program for drones to come and go.
At that time, I want to set the speed and move the drone.

I referred to this page, but is there a current way to set the speed?

Please let me know if there is a way.

1 Like

There is an “extended” moveBy command with speed settings

Thank you for your reply.

After changing moveBy to extended_move_by, I was able to set the speed.
However, after that, an AssertionError occurs and cannot land.

I would like to know if there is a sample program that uses extended_move_by.

My script is below.
I’m a beginner and I don’t know where to fix it, so please let me know.

# -- coding: UTF-8 --

import olympe
from olympe.messages.ardrone3.Piloting import TakeOff, Landing
from olympe.messages.ardrone3.PilotingState import FlyingStateChanged
from olympe.messages.move import extended_move_by


if name == “main”:

  • drone = olympe.Drone(DRONE_IP)*
  • drone.connect()*
  • assert drone(*
  •    TakeOff()*
  •    >> FlyingStateChanged(state="hovering", _timeout=5)*
  • ).wait().success()*
  • assert drone(*
  •    extended_move_by(20, 0, 0, 0, 5, 0, 0)*
  •    >> FlyingStateChanged(state="hovering", _timeout=5)*
  • ).wait().success()*
  • assert drone(Landing()).wait().success()*
  • drone.disconnect()*