The Move Steering block can make your robot drive forward, backward, turn, or stop. You can adjust the steering to make your robot go straight, drive in arcs, or make tight turns.
Use the Move Steering block for robot vehicles that have two Large Motors, with one motor driving the left side of the vehicle and the other the right side. The Move Steering block will control both motors at the same time, to drive your vehicle in the direction that you choose.
Left motor
Right motor
Port Selector
Mode Selector
Inputs
Select the two motors (A, B, C, or D) that you want the Move Steering block to control by using the Port Selector on the top of the block. Click on each motor letter to choose the port for that motor. The first port should be the motor on the left side of the vehicle, and the second port should be the motor on the right side.
The On mode turns both motors on, then immediately continues to the next block in the program. You can control the speed and direction of the motors using the Power and Steering inputs. The motors will run until they are stopped or changed by another block later in the program, or until the program ends.
The Off mode turns both motors off. Use the Off mode to stop a robot that was started by the On mode earlier in the program. See the example above.
If Brake at End is True, the motors are stopped immediately. The motors will be held in their stopped position until another Move or Motor block starts them, or until the program ends. If Brake at End is False, power to the motors is simply turned off. The motors will coast using any remaining momentum until they stop, or until another Move or Motor block starts.
On for Seconds turns both motors on for the number of seconds in the Seconds input, then turns them off. The block will wait until the time has passed before the program will continue to the next block.
You can control the speed and direction of your robot using the Power and Steering inputs. Use Brake at End to stop your robot after exactly the specified number of seconds.
On for Degrees turns both motors on, waits until one of them has turned for the number of degrees of rotation in the Degrees input, and then turns both motors off. This can be used to make your robot travel a specific distance or turn a specific amount. 360 degrees of rotation corresponds to one full turn of a motor.
You can control the speed and direction of your robot using the Power and Steering inputs. Use Brake at End to stop your robot after exactly the specified number of degrees.
On for Rotations turns both motors on, waits until one of them has turned for the number of rotations in the Rotations input, then turns both motors off. This can be used to make your robot travel a specific distance or turn a specific amount.
You can control the speed and direction of your robot using the Power and Steering inputs. Use Brake at End to stop your robot after exactly the specified number of motor rotations.
Rotations | Degrees |
---|---|
1 | 360 |
2 | 720 |
0.5 | 180 |
1.25 | 450 |
7.2 | 2592 |
The Power input accepts a number from -100 to 100. Positive and negative numbers for Power make the Large Motor turn in different directions, as shown in the graphic below.
Positive Power
Negative Power
You can change the normal rotation direction for a motor using the Invert Motor block. If a motor direction has been inverted, the effect of positive and negative power levels will be the opposite of that shown above.
The Steering input accepts a number from -100 to 100. A value of 0 (zero) will make your robot drive straight. A positive number (greater than zero) will make your robot turn to the right, and a negative number will make your robot turn to the left. The farther the steering value is from zero, the tighter the turn will be.
The Move Steering block makes your robot turn by running the two motors at different speeds. For very tight turns, one of the motors will be reversed.