Curtis Sellier / Mbed 2 deprecated Project_Car_Curtis_Non_Tested

Dependencies:   Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
csellier
Date:
Fri Oct 14 09:53:56 2016 +0000
Parent:
7:5da0ff9752d5
Child:
9:a543d0cdfce9
Commit message:
LDR value added

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 13 22:02:34 2016 +0000
+++ b/main.cpp	Fri Oct 14 09:53:56 2016 +0000
@@ -28,6 +28,8 @@
     float front;
     float left;
     float right;
+    float LDRleft;
+    float LDRright;
 
      // set the USB serial interface baud rate
      pc.baud(921600);
@@ -39,6 +41,8 @@
     front = IRfront.read();
     left  = IRleft.read();
     right = IRright.read();
+    LDRvalueright = LDRright.read();
+    LDRvalueleft = LDRleft.read()
     
     if (front > DISTANCE) {
         if (left > DISTANCE) {