Sumo Start

We need to ensure that the robot waits for three seconds before moving. But it also takes us a second to arm the brushless motor ESC.

The following code will help us to that:

void setup() {
 
 sumo.setup();

 sumo.stop();
 delay(2800); // delay to ensure the ESC is ready!

 sumo.forward(80, 80);
 
 }

Note this code will cause the robot to charge at 80% speed after the setup phase.

Also note, we waited 2.8s, but if you run a stopwatch on the robot it will be closer to 3s. This needs to be experimented with.

Last updated