7_navigation_program

7_navigation_program - ' Robotics with the Boe-Bot -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
' Robotics with the Boe-Bot - EepromNavigation.bs2 ' Navigate using characters stored in EEPROM. ' ' {$STAMP BS2} ' Stamp directive. ' {$PBASIC 2.5} ' PBASIC directive. ' ' -----[ Variables ]---------------------------------------------------------- ' pulseCount VAR Word ' Stores number of pulses. address VAR Byte ' Stores EEPROM address. instruction VAR Byte ' Stores EEPROM instruction. i ' -----[ EEPROM Data ]-------------------------------------------------------- ' ' Address: 0123456789 ' These two commented lines show ' |||||||||| ' EEPROM address of each datum. DATA "FLFFRBLBBQ" ' Navigation instructions. D ' -----[ Initialization ]----------------------------------------------------- ' FREQOUT 4, 2000, 3000 ' Signal program start/reset. F ' -----[ Main Routine ]------------------------------------------------------- ' DO D READ address, instruction ' Data at address in instruction. address = address + 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/08/2011 for the course ENGR 120 taught by Professor Hall during the Winter '08 term at LA Tech.

Page1 / 2

7_navigation_program - ' Robotics with the Boe-Bot -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online