-
Notifications
You must be signed in to change notification settings - Fork 222
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
finished bootcamp #122
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.
some nitpicks, almost there!
self.start_simulator = False | ||
elif ( | ||
report.status == drone_status.DroneStatus.HALTED | ||
and distance_to_waypoint <= self.acceptance_radius |
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.
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: |
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.
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 |
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.
again same issue here with the first set relative destination command not working as intended
elif (not self.not_on_pad) and report.status == drone_status.DroneStatus.HALTED: | ||
command = commands.Command.create_land_command() |
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.
need to check acceptance radius here again
if not result: | ||
return [], image_annotated |
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.
good handling of error result
No description provided.