PES 2 - Gruppe 1 / Mbed 2 deprecated Robocode_Random

Dependencies:   mbed

Fork of Robocode by PES 2 - Gruppe 1

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