Shop OBEX P1 Docs P2 Docs Learn Events
BoeBot - Stuck on EscapeCorners.bs2 — Parallax Forums

BoeBot - Stuck on EscapeCorners.bs2

John KauffmanJohn Kauffman Posts: 653
edited 2011-03-14 09:33 in Robotics
I didn't understand the code for BoeBot text: ExcapeCorners.BS2.

To analyze, I made a list of events and the state of variables at each moment (attached). I am stuck at the place where I have inserted the ### symbols.

It seems the logical test at that point would be FALSE because the right side current value (IN7) is not opposite the right side previous (Old7). But if the BoeBot is, in fact, stuck the code should be TRUE so that the counter goes up by one.

Any insights into why I have this wrong?

Comments

Sign In or Register to comment.