<<Prev 1 2 3 4 5 6 7 8 9 10 11 Next>>
Center of Gravity
The COG location is the red square with a green line from the center of the image to the COG location.
Based on the location of the COG we can now apply the following conditions to the robot motors:
- When the COG is to the right of the center of screen, turn on the left motor for a bit.
- When the COG is on the left, turn on the right motor.
- When the COG is below center, apply reverse power to opposite motor to pivot the robot.
You can also try other conditions such as when the distance of the COG to the center of screen is large
really turn up the motor values to try to catch up to the line.
Let's have a look at some more results ...
<<Prev 1 2 3 4 5 6 7 8 9 10 11 Next>>
|