New Height
Create a coordinate system on the Full Volume Virtual Skills Field with the position of the red dot as the origin (0, 0) and the initial position of the Hero Bot Center located at coordinates (0, 36). Use [Drive for], [Turn to heading], [Spin to position], and [Spin for] blocks to code the Hero Bot to pick up each of the four highlighted Purple Blocks and score it into Goal III. Create an algorithm that navigates the robot to a specific position to drop the Block and make the Goal have the Fill Level 3.
- Select the VIQRC Virtual Skills - Full Volume Playground.
- Code the Hero Bot to pick up a highlighted Purple Block and score it into Goal III.
- Create an algorithm to drive the robot for a certain distance and track its X and Y coordinates. Use the algorithm to drive the robot to the highlighted Purple Block.
- Code the robot to pick up the Block.
- Create an algorithm to navigate the robot to a specific position. Use the algorithm to navigate the robot to coordinates (-70, 1270) and turn the robot to Heading -45 degrees.
- Code the robot to drop the Block.
- Code the Hero Bot to pick up the second highlighted Purple Block and score it into Goal III at the same position and orientation as scoring the first Purple Block.
- Code the Hero Bot to pick up the third highlighted Purple Block and score it into Goal III at the same position and orientation as scoring the first Purple Block.
- Code the Hero Bot to pick up the fourth highlighted Purple Block and score it into Goal III at the same position and orientation as scoring the first Purple Block.
Helpful Hints
- Use the coordinates of the robot (x1,y1), the coordinates of the target position(x2,y2), and atan function to find the drive Heading.
- Calculate the angle theta θ of the line connecting these two points.
- Convert the angle theta θ to drive Heading.
- Use the coordinates of the robot (x1,y1), the coordinates of the target position(x2,y2), and the Pythagorean Theorem to find the drive distance.
- Use the function block from the Operators category to express atan function to calculate angle theta θ
- Matching Python command:
- Use the function block from the Operators category to express the Pythagorean Theorem to calculate drive distance.
- Matching Python command: