Modifications

Sauter à la navigation Sauter à la recherche
Ligne 123 : Ligne 123 :  
There's no need to initialize the Robot object.
 
There's no need to initialize the Robot object.
   −
To get the wheels to move, call Robot.motorsWrite(). motorsWrite() requires 2 arguments, the speed of the left motor, and the speed of the right motor. These values range from -255 to 255, where -255 is full reverse, and 255 is full speed forward. If you pass a value of 0, the motor will stop spinning the wheel.
+
To get the wheels to move, call [[RB-ARD-ROBOT-Func-motorsWrite|Robot.motorsWrite()]]. motorsWrite() requires 2 arguments, the speed of the left motor, and the speed of the right motor. These values range from -255 to 255, where -255 is full reverse, and 255 is full speed forward. If you pass a value of 0, the motor will stop spinning the wheel.
    
Once you've uploaded the sketch, unplug the USB cable for the robot. Whenever the USB is connected, the robot's motors are disengaged. Turn on the power and watch it move around!  
 
Once you've uploaded the sketch, unplug the USB cable for the robot. Whenever the USB is connected, the robot's motors are disengaged. Turn on the power and watch it move around!  
29 836

modifications

Menu de navigation