Home Project Folders Resources How Do I? MWForum
Site Map Search Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: EX Robotics Question
From: "Bruce Cattanach" <bruce.cattanach@xxxxxxxxx>
Date: Wed, 14 Mar 2007 10:55:11 -0400
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;

My colleague, working with our 5th grade has this question
dealing with MW ExRobtics...  Thanks

I need a program that will start a robot with a touch
sensor, follow a line and stop the robot with another
touch sensor. So far it can start with a touch sensor and
follow the line. I cannot get another touch sensor to work.

This robot has a touch sensor in the back and front and is triggered from
another robot coming from the back.  After it starts, and follows a line, it
contacts
a third robot which starts following a line,  the front sensor will trigger
the robot to stop.
A relay event, with three robots.  All following lines and triggering
others.

I know,  we aren't supposed to be doing this with Fifth graders,
but we just can't help ourselves.  LOL

The program so far is --

to relay
waituntil [switch1]
aon con
asetpower 2
csetpower 2
loop[
left
waituntil [onblack]
waituntil [not onblack]
right
waituntil [onblack]
waituntil [not onblack]
]
end

to left
aon bon coff
end

to right
con bon aoff
end

to onblack
output reflect2
end

any help will be greatly appreciated.

Gerry Telmosse
Science Specialist
www.gtelmosse.com
www.myownbook.tv

--
Bruce Cattanach
http://www.cattanach.org

  • Previous by thread: Checking touching within Puzzle Game
  • Next by thread: RE: EX Robotics Question

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2006