Skip to content

Commit 89f07a2

Browse files
committed
examples: closer goto, and go up, not down
This is required because the goto altitude is absolute.
1 parent f03730a commit 89f07a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/goto.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ async def run():
2828

2929
await asyncio.sleep(1)
3030

31-
await drone.action.goto_location(55.8688660, -4.2851267, 40, 0)
31+
await drone.action.goto_location(47.399386, 8.535245, 500, 0)
32+
33+
while True:
34+
await asyncio.sleep(1)
3235

3336
if __name__ == "__main__":
3437
loop = asyncio.get_event_loop()

0 commit comments

Comments
 (0)