Lab 2 RC

Dependencies:   Motor Servo mbed

Revision:
2:26ae66987e9f
Parent:
1:55b6172d1930
--- a/main.cpp	Tue Oct 13 04:11:33 2015 +0000
+++ b/main.cpp	Tue Oct 13 17:49:34 2015 +0000
@@ -16,11 +16,11 @@
 
     while(1) {
         for(int pos=0; pos<=18; pos++) {    //Moves 18 positions
-            s(pos/18.0);                    //Moves 1/18 of the distance
+            s=pos/18.0;                    //Moves 1/18 of the distance
             getchar();                      //Wait for button press
         }
         for(int pos=18; pos>=0; pos--) {    //Same as last loop, but backwards
-            s(pos/18.0);
+            s=pos/18.0;
             getchar();
         }
     }