Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created path_2024_task_1.py #39

Merged
merged 4 commits into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
mgupta27 marked this conversation as resolved.
Show resolved Hide resolved
"""
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")
Loading