Skip to content

Commit

Permalink
Created path_2024_task_1.py (#39)
Browse files Browse the repository at this point in the history
* Created path_2024_task_1.py

* fix nits

* more nits

* comments and newline at the bottom
janez45 authored Feb 21, 2024
1 parent 21a1502 commit e974284
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions path_2024_task_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""
Task 1 path.
"""

import dronekit


CONNECTION_ADDRESS = "tcp:localhost:14550"


# Required for checks
# pylint: disable-next=too-many-return-statements
def run() -> int:
"""
Uploads mission to run a maximum number of laps and monitors the mission for early landing.
"""
# Wait ready is false as the drone may be on the ground
drone = dronekit.connect(CONNECTION_ADDRESS, wait_ready = False)

return 0


if __name__ == "__main__":
# Not a constant
# pylint: disable-next=invalid-name
result_run = run()
if result_run < 0:
print("ERROR")

print("Done")

0 comments on commit e974284

Please sign in to comment.