Error when using extended_move_by

I created the following program using extended_move_by to set the speed and move the drone.

# -- coding: UTF-8 --

import olympe
from olympe.messages.ardrone3.Piloting import TakeOff, moveBy, 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(10, 0, 0, 0, 5, 0, 0)**
** >> FlyingStateChanged(state=“hovering”, _timeout=5)**
** ).wait().success()**
** assert drone(Landing()).wait().success()**
** drone.disconnect()**

I was able to move the drone at the set speed, but the connection was lost and I could not land due to the following error.

2021-04-21 08:16:18,171 [INFO] olympe.drone.ANAFI-0000000 - _recv_cmd_cb - ardrone3.PilotingState.FlyingStateChanged(state=FlyingStateChanged_State.flying)
2021-04-21 08:16:18,171 [INFO] olympe.drone.ANAFI-0000000 - _recv_cmd_cb - animation.availability(values=’’)
Traceback (most recent call last):
** File “extendedmoveby.py”, line 19, in **
** >> FlyingStateChanged(state=“hovering”, _timeout=5)**
AssertionError

I think the cause is that the flight condition is not hovering, but I don’t know what to do, so please let me know.