Michael Marzano / Mbed 2 deprecated Linear_Stepper_Motor_Nema17

Dependencies:   mbed

Revision:
6:0c5418e05145
Parent:
5:955bbc08ee78
Child:
7:0d941d1140ad
--- a/lin_step_mtr.cpp	Mon Apr 27 01:01:59 2020 +0000
+++ b/lin_step_mtr.cpp	Mon Apr 27 14:42:19 2020 +0000
@@ -45,6 +45,11 @@
     return (float) speed * 3 / 10;
 }
 
+double LinStepMtr::get_rev()
+{
+    return rev_cnt;
+}
+
 LinStepMtr::Direction LinStepMtr::get_dir()
 {
     return dir;   
@@ -117,7 +122,7 @@
 
 void LinStepMtr::rotate()
 {
-    pc.printf("Called rotate()\n");
+//    pc.printf("Called rotate()\n");
  /*
     while(1) {