В момента ресурсът е наличен само на английски

Your first program in Python for SPIKE Pro Preview

In our very first program, we will use 2 commands that make the robot move forward for 2 seconds.

Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео

Абонирай се

  • #1654
  • 20 Aug 2020
MotorPair('E', 'A').start_at_power(30)



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.