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

finished bootcamp #122

Closed
wants to merge 3 commits into from
Closed

Conversation

Mohammdamin-Sedaghat
Copy link

No description provided.

Copy link

@AaronWang04 AaronWang04 left a comment

Choose a reason for hiding this comment

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

some nitpicks, almost there!

self.start_simulator = False
elif (
report.status == drone_status.DroneStatus.HALTED
and distance_to_waypoint <= self.acceptance_radius

Choose a reason for hiding this comment

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

what if the first set_relative_destination_command did not put the drone into the right location? in real life, GPS are analog and have tolerance of error. which is why we have self.acceptance_radius in the first place.

# ============
# ↑ BOOTCAMPERS MODIFY ABOVE THIS COMMENT ↑
# ============

return command

def my_sqrt(self, report: drone_report.DroneReport) -> float:

Choose a reason for hiding this comment

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

function name could probably be more representative of what it does

self.waypoint.location_x - report.position.location_x,
self.waypoint.location_y - report.position.location_y,
)
self.start_simulator = False

Choose a reason for hiding this comment

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

again same issue here with the first set relative destination command not working as intended

Comment on lines 95 to 96
elif (not self.not_on_pad) and report.status == drone_status.DroneStatus.HALTED:
command = commands.Command.create_land_command()

Choose a reason for hiding this comment

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

need to check acceptance radius here again

Comment on lines +124 to +125
if not result:
return [], image_annotated

Choose a reason for hiding this comment

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

good handling of error result

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