An auto car with 3 IR sensors.

Dependencies:   Ping

Revision:
14:28cae134a304
Parent:
13:87cd0ae37e06
Child:
15:1d440beb24d3
diff -r 87cd0ae37e06 -r 28cae134a304 autocar/autocar.cpp
--- a/autocar/autocar.cpp	Sun Jul 01 07:58:20 2018 +0000
+++ b/autocar/autocar.cpp	Sun Jul 01 13:12:37 2018 +0000
@@ -50,6 +50,7 @@
 
     int ret = left * (-1) + middle * 0 + right * 1;
 
+    pc.printf("left middle right: %d %d %d\r\n", left, middle, right);
     pc.printf("IR values: %d\r\n", ret);
 
     return ret;