I’m trying to run this script from the user guide, but I get an Assertion Error:
import olympe
import os
from olympe.messages.ardrone3.Piloting import TakeOff, moveBy, Landing
from olympe.messages.ardrone3.PilotingState import FlyingStateChanged
DRONE_IP = os.environ.get("DRONE_IP", "10.202.0.1")
def test_moveby2():
drone = olympe.Drone(DRONE_IP)
drone.connect()
assert drone(
TakeOff()
>> FlyingStateChanged(state="hovering", _timeout=5)
).wait().success()
assert drone(
moveBy(10, 0, 0, 0)
>> FlyingStateChanged(state="hovering", _timeout=5)
).wait().success()
assert drone(Landing()).wait().success()
drone.disconnect()
if __name__ == "__main__":
test_moveby2()
but I get this Error :
Traceback (most recent call last):
File "/home/escaper/code/parrot-groundsdk/my-script.py", line 25, in <module>
test_moveby2()
File "/home/escaper/code/parrot-groundsdk/my-script.py", line 12, in test_moveby2
assert drone(
AssertionError