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

Created path_2024_task_1.py #39

merged 4 commits into from
Feb 21, 2024

Conversation

janez45
Copy link
Contributor

@janez45 janez45 commented Feb 21, 2024

No description provided.

Copy link
Collaborator

@mgupta27 mgupta27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

@@ -0,0 +1,16 @@
'''
Copy link
Collaborator

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.

@@ -0,0 +1,16 @@
'''
Task 1 path
Copy link
Collaborator

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.

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)
Copy link
Collaborator

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.

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)
Copy link
Collaborator

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.


def run() -> int:
"""
Reads in hardcoded waypoints from CSV file and sends drone commands.
Copy link
Collaborator

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.

Copy link
Collaborator

@mgupta27 mgupta27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed.

if result_run < 0:
print("ERROR")

print("Done")
Copy link
Collaborator

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

path_2024_task_1.py Show resolved Hide resolved
Copy link
Collaborator

@mgupta27 mgupta27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@janez45 janez45 merged commit e974284 into main Feb 21, 2024
1 check passed
@janez45 janez45 deleted the createTask1 branch February 21, 2024 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants