parallaxinc / Simple-Libraries

Contents of the SimpleIDE workspace folder and its Parallax Learn Simple Libraries subfolder.
http://learn.parallax.com/propeller-c-set-simpleide/update-your-learn-folder
21 stars 21 forks source link

Modify abdrive so that it blocks until PWR has been set to 2 #84

Closed AndyLindsay closed 7 years ago

AndyLindsay commented 7 years ago

The abdrive library expects to have a program loaded into EEPROM and either started or restarted at the beginning of its programmed navigation. If the program is instead loaded with PWR set to 1, and then PWR is switched to 2 later, navigation errors occur. To prevent user confusion, it would be better if the abdrive library detectes the RST == 1 condition and blocks execution until it detects that RST == 2.