Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Robocode by
Diff: source/main.cpp
- Revision:
- 21:cb40c0533bc2
- Parent:
- 19:baa8371d55b4
- Child:
- 22:c8e187b9d949
diff -r 859c7aebf8a6 -r cb40c0533bc2 source/main.cpp
--- a/source/main.cpp Thu Mar 02 16:20:41 2017 +0000
+++ b/source/main.cpp Thu Mar 02 20:07:41 2017 +0000
@@ -14,7 +14,7 @@
//static double time_counter = 0.0f;
//static double deltatime = 0.0f;
-DigitalOut led(LED1); // Board LED
+//DigitalOut led(LED1); // Board LED
//Perophery for distance sensors
AnalogIn distance(PB_1);
@@ -38,8 +38,9 @@
int main()
{
move_init();
- move_forward_slow();
-
+ while(1){
+ sync_movement(false,true);
+ }
/* while(1){
if(status == 1){
led = 0;
@@ -54,3 +55,4 @@
}*/
}
+
