Chapter 5: Tactile Navigation with Whiskers · Page 187
ELSE
counter = 1
This
ENDIF statement ends the decision making process for the IF (old7 <> IN7) AND
(old5 <> IN5) THEN
statement.
ENDIF
ENDIF
The remainder of the program is the same as before.
Your Turn
One of the IF...THEN statements in EscapingCorners.bs2 checks to see if counter has
reached 4.
√ Try increasing the value to 5 and 6 and note the effect.
√ Try also reducing the value and see if it has any effect on normal roaming.