AKUL check if this has the correct right and left turning, if not replace it Code with lots of comments

Dependencies:   m3pi_ng mbed

Fork of Working_on_Left_and_Right by der Roboter

Revision:
6:a6f752174eef
Parent:
5:cee0a2fc8816
Child:
7:dd79b0942620
--- a/main.cpp	Tue Jun 03 10:59:34 2014 +0000
+++ b/main.cpp	Tue Jun 03 11:54:28 2014 +0000
@@ -191,13 +191,6 @@
         thinggy.calibrated_sensor(sensor);
         returned = (sensor[1] + sensor[2]*2 + sensor[3])/4;
         while(returned <= 240){
-                //turns right 
-                while(sensor[0] < sensor[4] && thinggy.line_position() != 0){
-                    thinggy.left_motor(turn_speed);
-                    thinggy.right_motor(-turn_speed);
-                    
-                    thinggy.calibrated_sensor(sensor);
-                }
                 //turns left 
                 while(sensor[4] > sensor[0] && thinggy.line_position() != 0){
                     thinggy.left_motor(-turn_speed);
@@ -223,14 +216,6 @@
                     
                     thinggy.calibrated_sensor(sensor);
                 }
-                //turns left 
-                while(sensor[4] > sensor[0] && thinggy.line_position() != 0){
-                    thinggy.left_motor(-turn_speed);
-                    thinggy.right_motor(turn_speed);
-                    
-                    thinggy.calibrated_sensor(sensor);
-                    
-                }
                 thinggy.calibrated_sensor(sensor);
                 returned = (sensor[1] + sensor[2]*2 + sensor[3])/4;