-
Notifications
You must be signed in to change notification settings - Fork 235
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
Gurvir - WARG Autonomy Bootcamp #131
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
if result: | ||
bounding_boxes.append(box) |
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.
Normally in statistics, if one part (one of the bounding boxes) of the data (the entire image) is invalid, we discard the entire data point.
(You do not need to change anything here, just something to think about)
if not self.has_sent_landing_command and report.status == drone_status.DroneStatus.HALTED: | ||
|
||
# If the drone is halted, start the move command | ||
command = self.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.
I don't think self.commands
is defined anywhere
|
||
# If the drone is halted, start the move command | ||
command = self.commands | ||
self.has_sent_landing_command = True |
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.
Please rename this variable to has_sent_move_command
, because your comments indicate that you sent a move command and not a landing command. It's very confusing that you're setting has_sent_landing_command
to True
self.move_command = commands.Command.create_set_relative_destination_command( | ||
self.destination_x, self.waypoint.location_y | ||
) |
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.
Not sure what this is for? It is never used. Also, this move command is based on relative distance, so you need to take into account your current position
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.
Conditionally approved!
command = move_command | ||
self.has_sent_move_command = True | ||
|
||
elif distance_squared < acceptance_radius_squared and self.has_sent_move_command is True: |
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.
This is fine for this bootcamp, but what happens if the drone halts unexpectedly midway in the flight? (Just something to think about, you do not need to change anything)
No description provided.