Tried multiple variations of this code to get the drone to move a short distance using moveTo , drone takes off and just hovers , here is the code
assert drone(
TakeOff()
>> FlyingStateChanged(state="hovering", _timeout=5)
).wait().success()
drone(
moveTo(39.685558101, -105.121048201, 3,mode.orientation_mode.to_target,0.0)
>> moveToChanged(status=status.DONE)
>> FlyingStateChanged(state="hovering", _timeout=5)
).wait().success()
assert drone(Landing()).wait().success()
drone.disconnect()
Logs:
2022-01-20 17:55:58,643 [INFO] | olympe.drone.ANAFI-G055619 - _send_command_impl - ardrone3.Piloting.moveTo(latitude=39.685558101, longitude=-105.121048201, altitude=3.0, orientation_mode=‘to_target’, heading=0.0) has been sent to the device |
---|---|
2022-01-20 17:55:58,833 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:55:58,834 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:55:59,072 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=17) |
2022-01-20 17:55:59,210 [INFO] | olympe.drone.ANAFI-G055619 - _link_quality_cb - Link quality: tx=54, rx=100, rx_useful=97 |
2022-01-20 17:55:59,249 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=17) |
2022-01-20 17:55:59,249 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-54) |
2022-01-20 17:55:59,371 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:55:59,373 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:56:00,094 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-53) |
2022-01-20 17:56:00,476 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:00,684 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:00,889 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:56:01,093 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:56:01,170 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:01,171 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:01,173 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-52) |
2022-01-20 17:56:02,095 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-51) |
2022-01-20 17:56:02,663 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:56:02,935 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=14) |
2022-01-20 17:56:03,069 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:03,344 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:03,370 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:03,371 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:04,164 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-52) |
2022-01-20 17:56:04,212 [INFO] | olympe.drone.ANAFI-G055619 - _link_quality_cb - Link quality: tx=-1, rx=100, rx_useful=100 |
2022-01-20 17:56:04,667 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:04,982 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:05,801 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.PilotingState.moveToChanged(latitude=39.685558101, longitude=-105.121048201, altitude=3.0, orientation_mode=‘TO_TARGET’, heading=0.0, status=‘ERROR’) |
2022-01-20 17:56:06,000 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:06,002 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:06,107 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - wifi.rssi_changed(rssi=-51) |
2022-01-20 17:56:07,873 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=17) |
2022-01-20 17:56:08,054 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=17) |
2022-01-20 17:56:08,273 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:08,465 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=16) |
2022-01-20 17:56:08,659 [INFO] | olympe.drone.ANAFI-G055619 - _send_command_impl - ardrone3.Piloting.Landing() has been sent to the device |
2022-01-20 17:56:08,664 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:08,665 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=15) |
2022-01-20 17:56:08,723 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - ardrone3.PilotingState.FlyingStateChanged(state=‘landing’) |
2022-01-20 17:56:08,726 [INFO] | olympe.drone.ANAFI-G055619 - _recv_cmd_cb - follow_me.state(mode=‘none’, behavior=‘idle’, animation=‘none’, animation_available=’’) |
2022-01-20 17:56:08,727 [INFO] | olympe.drone.ANAFI-G055619 - _disconnected_cb - Disconnected from device: ANAFI-G055619 |
2022-01-20 17:56:08,728 [INFO] | olympe.drone.ANAFI-G055619 - _disconnection_impl - disconnected from device: b’192.168.42.1’ |
2022-01-20 17:56:08,729 [INFO] | olympe.drone.ANAFI-G055619 - disconnect - Disconnection with the device OK. IP: b’192.168.42.1’ |
2022-01-20 17:56:08,730 [INFO] | olympe.pdraw.ANAFI-G055619 - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-5 |
2022-01-20 17:56:08,744 [INFO] | olympe.drone - _on_device_removed - <olympe.arsdkng.cmd_itf.DisconnectedEvent object at 0x7efdddaebac0> |
2022-01-20 17:56:08,746 [INFO] | olympe.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed: subscribers_thread |
2022-01-20 17:56:08,746 [INFO] | olympe.backend - _destroy - Manager has been destroyed |
2022-01-20 17:56:08,746 [INFO] | olympe.backend - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-1 |
2022-01-20 17:56:08,820 [INFO] | olympe.drone.ANAFI-G055619 - _on_device_removed - <olympe.arsdkng.cmd_itf.DisconnectedEvent object at 0x7efdc1047bb0> |
2022-01-20 17:56:08,836 [INFO] | olympe.drone.ANAFI-G055619 - _on_device_removed - <olympe.arsdkng.cmd_itf.DisconnectedEvent object at 0x7efdc0f741f0> |
2022-01-20 17:56:08,838 [INFO] | olympe.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed: subscribers_thread |
2022-01-20 17:56:08,839 [INFO] | olympe.backend - _destroy - Manager has been destroyed |
2022-01-20 17:56:08,839 [INFO] | olympe.backend - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-2 |
2022-01-20 17:56:08,916 [INFO] | olympe.pdraw.ANAFI-G055619 - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-4 |
2022-01-20 17:56:08,922 [INFO] | olympe.media.ANAFI-G055619 - _shutdown - olympe.media shutdown |
2022-01-20 17:56:08,923 [INFO] | olympe.media.ANAFI-G055619 - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-3 |