From 89f07a25dbea6f11791a8fa5b9ad4dff2fa15775 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Thu, 23 Jul 2020 13:11:34 +0200 Subject: [PATCH 1/2] examples: closer goto, and go up, not down This is required because the goto altitude is absolute. --- examples/goto.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/goto.py b/examples/goto.py index 85aa88c1..601d152e 100755 --- a/examples/goto.py +++ b/examples/goto.py @@ -28,7 +28,10 @@ async def run(): await asyncio.sleep(1) - await drone.action.goto_location(55.8688660, -4.2851267, 40, 0) + await drone.action.goto_location(47.399386, 8.535245, 500, 0) + + while True: + await asyncio.sleep(1) if __name__ == "__main__": loop = asyncio.get_event_loop() From 89a7dbf3dd406c22778000d93d331c36ca1b89e8 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 24 Jul 2020 11:04:32 +0200 Subject: [PATCH 2/2] examples: don't set heading, remove debug wait --- examples/goto.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/goto.py b/examples/goto.py index 601d152e..8a034dfc 100755 --- a/examples/goto.py +++ b/examples/goto.py @@ -28,10 +28,7 @@ async def run(): await asyncio.sleep(1) - await drone.action.goto_location(47.399386, 8.535245, 500, 0) - - while True: - await asyncio.sleep(1) + await drone.action.goto_location(47.399386, 8.535245, 500, float('nan')) if __name__ == "__main__": loop = asyncio.get_event_loop()