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:
- 117:66d64dbd1b36
- Parent:
- 115:720dc5df42a5
- Child:
- 119:eb212467afb0
diff -r e03a3692cdf0 -r 66d64dbd1b36 source/Main.cpp
--- a/source/Main.cpp Wed May 10 08:52:04 2017 +0000
+++ b/source/Main.cpp Wed May 10 10:02:53 2017 +0000
@@ -132,12 +132,13 @@
//Testtools
case 100: //Testtool for IR sensors
- printf("sensor 0: %f \r\n", getDistanceIR(0));
- printf("sensor 1: %f \r\n", getDistanceIR(1));
- printf("sensor 2: %f \r\n", getDistanceIR(2));
- printf("sensor 3: %f \r\n", getDistanceIR(3));
- printf("sensor 4: %f \r\n", getDistanceIR(4));
- printf("sensor 5: %f \r\n\n", getDistanceIR(5));
+ //printf("sensor 0: %f \r\n", getDistanceIR(0));
+ // printf("sensor 1: %f \r\n", getDistanceIR(1));
+ printf("sensor oben: %f \r\n", getDistanceIR(2));
+ printf("sensor unten: %f \r\n\n", getDistanceIR(3));
+ // printf("sensor 4: %f \r\n", getDistanceIR(4));
+ // printf("sensor 5: %f \r\n\n", getDistanceIR(5));
+ wait(0.1f);
state = 100;
break;
case 101: //Testtool for get_color
