-
Notifications
You must be signed in to change notification settings - Fork 266
Tanmay Shah #114
base: main
Are you sure you want to change the base?
Tanmay Shah #114
Conversation
maxlou05
left a comment
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 report.status == drone_status.DroneStatus.HALTED: | ||
| # check if at the waypoint | ||
| if not self.has_reached_waypoint and distance_net_squared <= self.acceptance_radius**2: | ||
| 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.
You don't need to land at the waypoint, just get there and then go towards the landing pad (you land at the landing pad)
| command = commands.Command.create_set_relative_destination_command( | ||
| diff_distance_x, diff_distance_y | ||
| ) | ||
| print("Moving to closest landing pad!") |
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.
There doesn't seem to be an implementation for actually reaching and landing on the landing pad, this just gets the drone to move towards the closest landing pad
| for i in range(0, boxes_cpu.shape[0]): | ||
| # Create BoundingBox object and append to list | ||
| result, box = bounding_box.BoundingBox.create(boxes_cpu[i]) | ||
| if result: # this way only valid boxes are added |
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, we discard the whole datapoint (the entire image) if a part of it goes wrong (one bounding box).
You do not need to change anything here, just something to think about.
No description provided.