-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
When trying to shoot a goal the robot does a straight shot instead of an angle one. This means the ball hits the goal post and doesn't go into the goal despite such a shot being easily possible.
Expected behavior
Do an angle shot to avoid the goal post.
Current behavior
Does a straight shot while the ball is position straight in front of the pole.
Steps to Reproduce
- Get the robot into a playing game state.
- Position the ball in front of either of the posts such that the midpoint of the ball is inside the bounds defined by the midpoints of the goal posts.
- Let the robot take a shot.
- The ball hits the post and doesn't make it into the goal.
Possible Solution
Presumably this is caused by the algorithm checking if the ball is between the insides of the midpoints of the posts, not taking into account the physical extend of the posts. This could be fixed by either narrowing the area of the goal to match the insides of the posts or to take into account the physical extend.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
🔖 Ready