Z Zh / Mbed 2 deprecated 3pi_Lab2_Task1

Dependencies:   mbed m3pi

Revision:
5:a7949ddab560
Parent:
4:d53cb2045ee8
diff -r d53cb2045ee8 -r a7949ddab560 main.cpp
--- a/main.cpp	Tue Nov 19 10:27:17 2019 +0000
+++ b/main.cpp	Tue Nov 19 10:30:02 2019 +0000
@@ -63,13 +63,11 @@
         // number is negative when the line is to the left. Need to turn left
         if (position < -threshold) {
             // slow down left, speed up right
-            robot.motors(0,speed);
             // ADD CODE HERE TO CONTROL MOTORS
         }
         // number is positive when the line is to the right. Need to turn right
         else if (position > threshold) {
             // slow down right, speed up left
-            robot.motors(speed,0);
             // ADD CODE HERE TO CONTROL MOTORS
         }
         // else over the line