Bebop 2 MoveTo resulting in error

While trying to move the drone to coordinates directly after takeoff and in an hovering state “MoveToChanged_Status.ERROR” is returned and the drone does nothing

We are using Olympe, Drone fw version 4.7.1

here is a short version of code

`bebop = olympe.Drone(“192.168.42.1”, loglevel=0, drone_type=od.ARSDK_DEVICE_TYPE_BEBOP_2)
bebop.connection()

bebop(TakeOff(_no_expect=True)).wait()

bebop(
moveTo(lat, lon, alt, MoveTo_Orientation_mode.TO_TARGET, 0.0)
>> FlyingStateChanged(state=‘hovering’, _timeout=5)
>> moveToChanged(latitude=lat, longitude=lon, altitude=alt, orientation_mode=MoveTo_Orientation_mode.TO_TARGET, status=‘DONE’, _policy=‘wait’)
>> FlyingStateChanged(state=‘hovering’, _timeout=5)
)

bebop(Landing()).wait()`