What’s the first thing that comes up to your mind when you hear the words ” Dead Reckoning.” You either think of Tom Cruise and his movie Mission Impossible or you can act nerdy and say that its a technological phrase. When Mrs.Thompson first told us about it, I was WOW, my Boe-Bot would finally perform this twisted maneuver just like we see in the movies. Well, Dead Reckoning is pretty similar to that but its way simple and less dangerous 😀 :D. You will have to modify your MovementWithVariablesAndOneSubroutine.bs2 program to make your Boe-Bot drive in a square, facing forwards on the first two sides and backwards on the second two sides. I decided to use MovementsWithSubroutines.bs2 because I felt more comfortable with it then the other one. Okay, a key point in order this program would work is that, you will have to use your own PULSOUT  EndValue argument that you have found it and used in chapter 2.

Here is what my program looked like:

‘ Robotics with the Boe-Bot – MovementsWithSubroutines.bs2

‘ Make forward, left, right, and backward movements in reusable   subroutines.

‘ {$STAMP BS2}

‘ {$PBASIC 2.5}

DEBUG “Program Running!”

counter VAR Word

FREQOUT 4, 2000, 3000              ‘ Signal program start/reset.

GOSUB Forward

GOSUB Left

GOSUB Forward

GOSUB Left

GOSUB Forward

GOSUB Left

GOSUB Forward

END

Forward:

FOR counter = 1 TO 64

PULSOUT 13, 850

PULSOUT 12, 650

PAUSE 20

NEXT

PAUSE 200

RETURN

Left:

FOR counter = 1 TO 18

PULSOUT 13, 650

PULSOUT 12, 650

PAUSE 20

NEXT

PAUSE 200

RETURN

END

In my program I simply made my Boe-Bot roll forward and make a left turn but of course it carried out these commands in a specific sequence made by me. So, first it would roll forward in a straight path then it would turn left at 90 degrees and then again moves Forward and then turns Left at 90 degrees and so on, until it performs a complete circle and end up at the same exact point where it began in the first place.  You can the know the sequence that the Boe-Bot performs by simply looking at this:

GOSUB Forward

GOSUB Left

GOSUB Forward

GOSUB Left

GOSUB Forward

GOSUB Left

GOSUB Forward

I wasn’t able to show Mrs.Thompson my “Epic Dead Reckoning ” but I am sure she would approve of it because it took me a while until I made my Boe-Bot go in a straight line, which I think was the challenge in this activity. That was everything for today’s class, it was really fun today, especially the Dead Reckoning!!! I enjoyed it 😀 😀