BoeBot - Stuck on EscapeCorners.bs2
John Kauffman
Posts: 653
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?
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
It actually looks like you didn't carry the right old7 state to the contact ends line in row 10. I went ahead and updated your chart with my changes in green.
Another thing to note is that the variable counter is also initialized to 1. So I took the liberty of updating your counter column too.
Hope this helps, let me know if you get stuck anywhere else!
Cheers,
Jessica
Thanks for on-doc edits.
Animation clip on this topic almost done.