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?
https://forum.developer.parrot.com/t/set-max-speed-for-moveby/11003/9
Please let me know if there is a way.
1 Like
Jerome
April 7, 2021, 4:42pm
2
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
DRONE_IP = “10.202.0.1”
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()*