Bỏ qua nội dung

Lesson 8: Bumpers

English

Bumpers

  • At the front the robot has two bumper switches, left and right.
  • left_bumper.pressed() is True while the bumper touches something.
  • A bumper finds a wall by touching it, so here touching is allowed.

Words for this lesson

Word Meaning
bumper a switch that is pressed when the robot touches something
pressed the switch is pushed in
not turns True into False and False into True
back up drive backwards a little

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP