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:
- 96:8da1c57296ff
- Parent:
- 95:1c6867536350
- Child:
- 98:07a8a858e7cd
diff -r 1c6867536350 -r 8da1c57296ff source/Main.cpp
--- a/source/Main.cpp Wed May 03 06:22:49 2017 +0000
+++ b/source/Main.cpp Wed May 03 06:50:09 2017 +0000
@@ -159,6 +159,13 @@
stop_turn();
state = 11;
}
+ break;
+ case 104:
+ if(get_user() == false && stb2) {
+ printf("Distance read: %f",sensor[1]);
+ }
+ state = 104;
+ break;
}
}
}
\ No newline at end of file
