In our very first program, we will use 2 commands that make the robot move forward for 2 seconds.
- 20 Aug 2020
MotorPair('E', 'A').start_at_power(30) wait_for_seconds(2)
Here we are using 2 commands. The first one makes the motors turn the tires with a speed of 30 and the second one makes it wait for 2 seconds. In this way, the robot begins moving at 30% of the maximum motor power and continues to move for as long as it is told to wait. After the wait command the program finishes and the robot stops.