-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
path_2024_task_1.py
Outdated
@@ -0,0 +1,16 @@ | |||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Can you make these double quotations.
path_2024_task_1.py
Outdated
@@ -0,0 +1,16 @@ | |||
''' | |||
Task 1 path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change the docstring to be like Task 1 path.
path_2024_task_1.py
Outdated
Reads in hardcoded waypoints from CSV file and sends drone commands. | ||
""" | ||
# Wait ready is false as the drone may be on the ground | ||
drone = dronekit.connect(CONNECTION_ADDRESS, wait_ready = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add return 0
at the end of the run function.
path_2024_task_1.py
Outdated
Reads in hardcoded waypoints from CSV file and sends drone commands. | ||
""" | ||
# Wait ready is false as the drone may be on the ground | ||
drone = dronekit.connect(CONNECTION_ADDRESS, wait_ready = False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to path_2024.py
can you add a call to the run function.
path_2024_task_1.py
Outdated
|
||
def run() -> int: | ||
""" | ||
Reads in hardcoded waypoints from CSV file and sends drone commands. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the docstring can you change it to this: Uploads mission to run a maximum number of laps and monitors the mission for early landing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
path_2024_task_1.py
Outdated
if result_run < 0: | ||
print("ERROR") | ||
|
||
print("Done") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a newline at the bottom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.