Touch Sensor: Wait for Push

Home > Activities > Robots > Examples

Computer Challenge logo

 

  Equipment
  Building
  Programming
  Missions
Examples
  Contests
  Links
  Award

 

wait for touch diagram

Action: Go forward until the touch sensor on port 2 is pushed in, then stop.

Reading the program

  • Begin the program
  • Start motor A
  • Start motor C
  • Wait until the touch sensor connected to input 2 is pushed in
  • Stop all motors
  • End the program

Where to find it

Wait for Push: click Wait For wait for buttonon the functions palette.

Input 2: click Modifiers on the functions palette

For more information: See the Touch Sensors tutorial or Context Help in RoboLab.


  © 2010 Computer Challenge