
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=TactileNavigation.BS2</id>
		<title>TactileNavigation.BS2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.robotika.sk/robowiki/index.php?action=history&amp;feed=atom&amp;title=TactileNavigation.BS2"/>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=TactileNavigation.BS2&amp;action=history"/>
		<updated>2026-05-13T07:56:29Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=TactileNavigation.BS2&amp;diff=5607&amp;oldid=prev</id>
		<title>Balogh at 11:47, 15 February 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=TactileNavigation.BS2&amp;diff=5607&amp;oldid=prev"/>
				<updated>2011-02-15T11:47:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 11:47, 15 February 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;basic&amp;quot;&amp;gt;&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/source&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;' -----[ Title ]--------------------------------------------------------------&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;' -----[ Title ]--------------------------------------------------------------&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;' An example of the robot Boe-Bot with whiskers according the chapter 5&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;' An example of the robot Boe-Bot with whiskers according the chapter 5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot; &gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 71:&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; NEXT&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; NEXT&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RETURN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;RETURN&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Balogh</name></author>	</entry>

	<entry>
		<id>https://wiki.robotika.sk/robowiki/index.php?title=TactileNavigation.BS2&amp;diff=5603&amp;oldid=prev</id>
		<title>Balogh: New page: &lt;source lang=&quot;basic&quot;&gt; &lt;/source&gt; ' -----[ Title ]-------------------------------------------------------------- ' An example of the robot Boe-Bot with whiskers according the chapter 5 ' Boe...</title>
		<link rel="alternate" type="text/html" href="https://wiki.robotika.sk/robowiki/index.php?title=TactileNavigation.BS2&amp;diff=5603&amp;oldid=prev"/>
				<updated>2011-02-15T11:45:51Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;lt;source lang=&amp;quot;basic&amp;quot;&amp;gt; &amp;lt;/source&amp;gt; &amp;#039; -----[ Title ]-------------------------------------------------------------- &amp;#039; An example of the robot Boe-Bot with whiskers according the chapter 5 &amp;#039; Boe...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
' -----[ Title ]--------------------------------------------------------------&lt;br /&gt;
' An example of the robot Boe-Bot with whiskers according the chapter 5&lt;br /&gt;
' Boe-Bot uses whiskers to detect and avoid obstacles.&lt;br /&gt;
' {$STAMP BS2}                        ' Which Stamp processor to use.&lt;br /&gt;
' {$PBASIC 2.5}                       ' Which version of PBASIC to use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
' -----[ Variables ]----------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Counter VAR Byte                      ' counter for FOR/NEXT loop&lt;br /&gt;
&lt;br /&gt;
' -----[ Initialization ]-----------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
 Left   PIN    5                      ' Left whisker contact&lt;br /&gt;
Right   PIN    7                      ' Right whisker contact&lt;br /&gt;
&lt;br /&gt;
INPUT Left&lt;br /&gt;
INPUT Right&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
' -----[ Main Routine ]-------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
DO                                    ' Neverending loop&lt;br /&gt;
&lt;br /&gt;
  IF (Left = 0) AND (Right = 0) THEN  ' Front obstacle&lt;br /&gt;
    GOSUB Go_Back                     ' Back up &amp;amp; U-turn (left twice)&lt;br /&gt;
    GOSUB Go_Left&lt;br /&gt;
    GOSUB Go_Left&lt;br /&gt;
  ELSEIF (Left = 0) THEN              ' Obstacle on left&lt;br /&gt;
    GOSUB Go_Back                     ' Back up &amp;amp; turn right&lt;br /&gt;
    GOSUB Go_Right&lt;br /&gt;
  ELSEIF (Right = 0) THEN             ' Obstacle on right&lt;br /&gt;
    GOSUB Go_Back                     ' Back up &amp;amp; turn left&lt;br /&gt;
    GOSUB Go_Left&lt;br /&gt;
  ELSE                                ' Nothing in front&lt;br /&gt;
    GOSUB Go_Forward                  ' Apply a forward pulse&lt;br /&gt;
  ENDIF&lt;br /&gt;
&lt;br /&gt;
LOOP                                  ' and repeat again&lt;br /&gt;
&lt;br /&gt;
' -----[ Subroutines ]--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Go_Forward:                           ' Send a single forward pulse.&lt;br /&gt;
  PULSOUT 13,850&lt;br /&gt;
  PULSOUT 12,650&lt;br /&gt;
  PAUSE 20&lt;br /&gt;
RETURN&lt;br /&gt;
&lt;br /&gt;
Go_Left:                              ' Left turn, about 90-degrees.&lt;br /&gt;
  FOR Counter = 0 TO 20&lt;br /&gt;
    PULSOUT 13, 650&lt;br /&gt;
    PULSOUT 12, 650&lt;br /&gt;
    PAUSE 20&lt;br /&gt;
    NEXT&lt;br /&gt;
RETURN&lt;br /&gt;
&lt;br /&gt;
Go_Right:&lt;br /&gt;
  FOR Counter = 0 TO 20            ' Right turn, about 90-degrees.&lt;br /&gt;
    PULSOUT 13, 850&lt;br /&gt;
    PULSOUT 12, 850&lt;br /&gt;
    PAUSE 20&lt;br /&gt;
  NEXT&lt;br /&gt;
RETURN&lt;br /&gt;
&lt;br /&gt;
Go_Back:                              ' Back up.&lt;br /&gt;
  FOR Counter = 0 TO 40&lt;br /&gt;
    PULSOUT 13, 650&lt;br /&gt;
    PULSOUT 12, 850&lt;br /&gt;
    PAUSE 20&lt;br /&gt;
  NEXT&lt;br /&gt;
RETURN&lt;/div&gt;</summary>
		<author><name>Balogh</name></author>	</entry>

	</feed>