GroupA / Mbed 2 deprecated WaG_final

Dependencies:   mbed

Fork of Lab_6_WaG by GroupA

Revision:
78:84ce90a76594
Parent:
77:73e1cf3a7284
--- a/stepper.cpp	Thu Apr 26 16:12:09 2018 +0000
+++ b/stepper.cpp	Fri Apr 27 20:14:21 2018 +0000
@@ -99,7 +99,7 @@
             index++;
         wait(MOTOR_DELAY);
         spi_send(drv8806, turn[index]);
-        wait(TURN_DELAY);
+        //wait(TURN_DELAY);
     } else if (direction == STP_CCW) {
 
         if (stp_cur_pos != 0) {
@@ -117,7 +117,7 @@
             index--;
         wait(MOTOR_DELAY);
         spi_send(drv8806, turn[index]);
-        wait(TURN_DELAY);
+        //wait(TURN_DELAY);
     }
     wait(MOTOR_DELAY);
 }