Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lin_step_mtr.cpp
- Revision:
- 6:0c5418e05145
- Parent:
- 5:955bbc08ee78
- Child:
- 7:0d941d1140ad
diff -r 955bbc08ee78 -r 0c5418e05145 lin_step_mtr.cpp
--- 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) {