3
Common Programming Mistakes A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations” When moving the robot a specific distance, use the Move Steering block set to “On for Rotations”. In the sample program to the leſt, the robot will move: Straight Right Leſt At a speed of __________ For __________ rotations Which is a distance of __________ inches Aſter the robot moves for 5 rotations, it will: Stop Coast X

Common Programming Mistakes - WordPress.com · Common Programming Mistakes A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations” When moving

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Common Programming Mistakes - WordPress.com · Common Programming Mistakes A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations” When moving

Common Programming Mistakes

A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations”

When moving the robot a specific distance, use the Move Steering block set to “On for Rotations”.

In the sample program to the left, the robot will move:

Straight Right Left

At a speed of __________

For __________ rotations

Which is a distance of __________ inches

After the robot moves for 5 rotations, it will:

Stop Coast

X

Page 2: Common Programming Mistakes - WordPress.com · Common Programming Mistakes A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations” When moving

When turning using the Move Tank Block to turn the robot, you can turn using “On for Rotations”. No additional block is needed to stop the robot if using the “On for Rotations” mode.

You can also turn with the Move Tank block using the “On” mode. Add a Wait block to let the robot know when the Gyro Sensor senses that the robot has turned a certain number of degrees.

When using a Move block in the “On” mode, you will need to use a Move block in the “Off ” mode to stop the robot from turning.

Page 3: Common Programming Mistakes - WordPress.com · Common Programming Mistakes A Stop Engine block is not needed when using a Move Steering block that is “On for Rotations” When moving

What is missing from this program?

In this program, the robot will go what direction? ________________

What speed is the robot traveling at? ______

When will the robot stop? ______________

When using the color sensor, you want to use the “Compare Color” mode.

When might you want to use the “Reflected Light Intensity mode?

Make sure that the port for your program matches the port where your sensor is plugged into.