<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.randomdata.nl/wiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;feed=atom&amp;action=history</id>
		<title>Roambot - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;action=history"/>
		<updated>2013-05-25T08:47:20Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1192&amp;oldid=prev</id>
		<title>Zkyp at 17:48, 7 June 2011</title>
		<link rel="alternate" type="text/html" href="http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1192&amp;oldid=prev"/>
				<updated>2011-06-07T17:48:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:48, 7 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Is the bot that won the HiTB2011AMS hackerspaces challenge.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Is the bot that won the HiTB2011AMS hackerspaces challenge.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;http://www.randomdata.nl/blogs/node/42&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[File:P1050218.JPG]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Here's the code! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Here's the code! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zkyp</name></author>	</entry>

	<entry>
		<id>http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1190&amp;oldid=prev</id>
		<title>Zkyp at 17:47, 7 June 2011</title>
		<link rel="alternate" type="text/html" href="http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1190&amp;oldid=prev"/>
				<updated>2011-06-07T17:47:06Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 17:47, 7 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Here's the code! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Here's the code! &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#define DROP_DISTANCE 25&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#define DROP_DISTANCE 25&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 127:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 127:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zkyp</name></author>	</entry>

	<entry>
		<id>http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1189&amp;oldid=prev</id>
		<title>Zkyp: Created page with &quot;Roambot  Is the bot that won the HiTB2011AMS hackerspaces challenge.  Here's the code!    #define DROP_DISTANCE 25  task main() {     SetSensorLight(IN_1);     SetSensorLight(IN_...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.randomdata.nl/wiki/index.php?title=Roambot&amp;diff=1189&amp;oldid=prev"/>
				<updated>2011-06-07T17:44:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Roambot  Is the bot that won the HiTB2011AMS hackerspaces challenge.  Here&amp;#039;s the code!    #define DROP_DISTANCE 25  task main() {     SetSensorLight(IN_1);     SetSensorLight(IN_...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Roambot&lt;br /&gt;
&lt;br /&gt;
Is the bot that won the HiTB2011AMS hackerspaces challenge.&lt;br /&gt;
&lt;br /&gt;
Here's the code! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#define DROP_DISTANCE 25&lt;br /&gt;
&lt;br /&gt;
task main()&lt;br /&gt;
{&lt;br /&gt;
    SetSensorLight(IN_1);&lt;br /&gt;
    SetSensorLight(IN_2);&lt;br /&gt;
    SetSensorType(IN_1,IN_TYPE_LIGHT_INACTIVE);&lt;br /&gt;
    SetSensorType(IN_2,IN_TYPE_LIGHT_INACTIVE);&lt;br /&gt;
    SetSensorMode(IN_1,SENSOR_MODE_PERCENT);&lt;br /&gt;
    SetSensorMode(IN_2,SENSOR_MODE_PERCENT);&lt;br /&gt;
    &lt;br /&gt;
    SetSensorLowspeed(IN_3);&lt;br /&gt;
    SetSensorTouch(IN_4);&lt;br /&gt;
    &lt;br /&gt;
    int lightambient = 100;&lt;br /&gt;
    int lighttreshold = 75;&lt;br /&gt;
    for (int i = 0; i &amp;lt; 3; i++)&lt;br /&gt;
    {&lt;br /&gt;
        PlayTone(440, 100);&lt;br /&gt;
        Wait(1000);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    int bouncecounter = 0;&lt;br /&gt;
    int lightsource = 0;&lt;br /&gt;
    &lt;br /&gt;
    OnFwd(OUT_A, 40);&lt;br /&gt;
    OnRev(OUT_B, 40);&lt;br /&gt;
    for (int i = 0; i &amp;lt; 20; i++)&lt;br /&gt;
    {&lt;br /&gt;
        if (Sensor(IN_1) &amp;lt; lightambient) lightambient = Sensor(IN_1);&lt;br /&gt;
        if (Sensor(IN_2) &amp;lt; lightambient) lightambient = Sensor(IN_2);&lt;br /&gt;
        if (Sensor(IN_1) &amp;gt; lightsource) lightsource = Sensor(IN_1);&lt;br /&gt;
        if (Sensor(IN_2) &amp;gt; lightsource) lightsource = Sensor(IN_2);&lt;br /&gt;
        PlayTone(440, 20);&lt;br /&gt;
        Wait(100);&lt;br /&gt;
    }&lt;br /&gt;
    Off(OUT_AB);&lt;br /&gt;
    lighttreshold = 5 + (lightambient + lightsource) / 2;&lt;br /&gt;
    &lt;br /&gt;
    PlayTone(784, 125);&lt;br /&gt;
    Wait(150);&lt;br /&gt;
    PlayTone(660, 125);&lt;br /&gt;
    Wait(150);&lt;br /&gt;
    PlayTone(660, 275);&lt;br /&gt;
    Wait(300);&lt;br /&gt;
    PlayTone(588, 125);&lt;br /&gt;
    Wait(150);&lt;br /&gt;
    PlayTone(660, 125);&lt;br /&gt;
    Wait(150);&lt;br /&gt;
    PlayTone(784, 125);&lt;br /&gt;
   &lt;br /&gt;
    OnFwd(OUT_C, 50);&lt;br /&gt;
   &lt;br /&gt;
    while(1) &lt;br /&gt;
    {&lt;br /&gt;
        ClearScreen();&lt;br /&gt;
        NumOut(1, 20, SensorUS(IN_3));&lt;br /&gt;
        //NumOut(1, 30, Sensor(IN_4));        &lt;br /&gt;
        NumOut(1, 40, lighttreshold);&lt;br /&gt;
        NumOut(1, 50, lightambient);&lt;br /&gt;
&lt;br /&gt;
        if (Sensor(IN_4) || SensorUS(IN_3) &amp;gt; DROP_DISTANCE)&lt;br /&gt;
        {&lt;br /&gt;
            OnFwd(OUT_AB, 30);&lt;br /&gt;
            Wait(1000);&lt;br /&gt;
            bouncecounter++;&lt;br /&gt;
            if (bouncecounter == 10)&lt;br /&gt;
            {&lt;br /&gt;
                bouncecounter = 0;&lt;br /&gt;
                lightambient = 100;&lt;br /&gt;
                lightsource = 0;&lt;br /&gt;
                OnFwd(OUT_A, 40);&lt;br /&gt;
                OnRev(OUT_B, 40);&lt;br /&gt;
                for (int i = 0; i &amp;lt; 20; i++)&lt;br /&gt;
                {&lt;br /&gt;
                    if (Sensor(IN_1) &amp;lt; lightambient) lightambient = Sensor(IN_1);&lt;br /&gt;
                    if (Sensor(IN_2) &amp;lt; lightambient) lightambient = Sensor(IN_2);&lt;br /&gt;
                    if (Sensor(IN_1) &amp;gt; lightsource) lightsource = Sensor(IN_1);&lt;br /&gt;
                    if (Sensor(IN_2) &amp;gt; lightsource) lightsource = Sensor(IN_2);&lt;br /&gt;
                    PlayTone(440, 20);&lt;br /&gt;
                    Wait(100);&lt;br /&gt;
                }&lt;br /&gt;
                Off(OUT_AB);&lt;br /&gt;
                lighttreshold = 5 + (lightambient + lightsource) / 2;&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
        &lt;br /&gt;
            int x1 = SENSOR_1;&lt;br /&gt;
            int x2 = SENSOR_2;&lt;br /&gt;
            NumOut(1, 1, x1);&lt;br /&gt;
            NumOut(1, 10, x2);&lt;br /&gt;
            if ((x1 &amp;lt; lighttreshold) &amp;amp;&amp;amp; (x2 &amp;lt; lighttreshold))&lt;br /&gt;
            {&lt;br /&gt;
                TextOut(1,20,&amp;quot;A&amp;quot;);&lt;br /&gt;
                OnRev(OUT_A, 75);&lt;br /&gt;
                OnFwd(OUT_B, 75);&lt;br /&gt;
            }&lt;br /&gt;
            else if (x1 &amp;lt; lighttreshold)&lt;br /&gt;
            {&lt;br /&gt;
                TextOut(1,20,&amp;quot;D&amp;quot;);&lt;br /&gt;
                int d1 = x2 - x1;&lt;br /&gt;
                OnRev(OUT_A, 50 - d1);&lt;br /&gt;
                OnRev(OUT_B, 60);&lt;br /&gt;
            }&lt;br /&gt;
            else if (x2 &amp;lt; lighttreshold)&lt;br /&gt;
            {&lt;br /&gt;
                TextOut(1,20,&amp;quot;C&amp;quot;);&lt;br /&gt;
                int d1 = x1 - x2;&lt;br /&gt;
                OnRev(OUT_B, 50 - d1);&lt;br /&gt;
                OnRev(OUT_A, 60);&lt;br /&gt;
            }&lt;br /&gt;
            else&lt;br /&gt;
            {&lt;br /&gt;
                TextOut(1,20,&amp;quot;B&amp;quot;);&lt;br /&gt;
                OnRev(OUT_AB, 75);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Zkyp</name></author>	</entry>

	</feed>