AKUL check if this has the correct right and left turning, if not replace it Code with lots of comments
Fork of Working_on_Left_and_Right by
Diff: main.cpp
- Revision:
- 1:4f52a001926a
- Parent:
- 0:9ab1097149ca
- Child:
- 2:b5031bb5303e
--- a/main.cpp Thu May 22 14:50:22 2014 +0000 +++ b/main.cpp Thu May 22 14:52:13 2014 +0000 @@ -50,7 +50,7 @@ thinggy.calibrated_sensor(sensor); } thinggy.calibrated_sensor(sensor); - returned = (sensor[1] + sensor[2] + sensor[3])/3; + returned = (sensor[1] + sensor[2]*2 + sensor[3])/4; }//while returned <= 220 // Curves and straightaways @@ -82,7 +82,7 @@ } } thinggy.calibrated_sensor(sensor); - returned = (sensor[1] + sensor[2] + sensor[3])/3; + returned = (sensor[1] + sensor[2]*2 + sensor[3])/4; }//while returned > 220 }//while(1)