Soccer Robot C - Basic lessons - Motors
The robots features 4 omni-wheels. We can manage its trajectory by calculating each motor's speed. There is a command that can do that work for us:
go(speed, angleDegrees), where
speed is self-revealing (maximum is 100) and
angleDegrees is the desired direction in degrees, front being 0° and positive values clockwise. For example,
void RobotSoccer::loop() {
go(50, 0);
}
will drive the robot straight ahead at speed 50.
Task: circular motion
Write a program that will be moving the robot in a circle clockwise.
Solution
void RobotSoccer::loop() {
go(50, 10);
}