![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ft. button press reset
Fork of BeaconDemo_RobotCode by
Diff: main.cpp
- Revision:
- 3:cd048f6e544e
- Parent:
- 2:a6214fd156ff
- Child:
- 4:25039ea5eb09
diff -r a6214fd156ff -r cd048f6e544e main.cpp --- a/main.cpp Mon Oct 05 14:42:16 2015 +0000 +++ b/main.cpp Mon Oct 05 20:42:37 2015 +0000 @@ -36,10 +36,12 @@ ///This function is the loop where user code should be placed void user_code_loop(){ + store_line_position(); ///Do not place code within a loop, but consider this function to be a loop that is always run ///unless the user code is externally paused (such as by debug or recharging system) - + if(line_found == 1)pc.printf("%f\n",line_position); + wait(0.25); }