Score a goal
score_goalDrive a VEX AIM robot to autonomously score a soccer goal: locate ball and goal, dribble into position, kick with measured strength, then retreat.
Instructions
Score by itself from anywhere: fetch the ball if the camera sees it elsewhere, find the goal (two barrels of the team's colour, from the map or by looking around), dribble closer if no measured kick would score from here, line up between the posts, kick with the gentlest measured strength that scores, and back away. Only uses kick strengths measured with test_kick; with none, it dribbles to 30 cm and kicks soft. shoot_at_goal instead kicks from where the robot stands. Make sure nobody is near the goal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | team | |
| speed_percent | No |