Pousse-Seringue Ulg

Dependents:   Pousse_seringue_Ulg 0__Pousse_seringue

Fork of Stepper by Mederic Melard

Files at this revision

API Documentation at this revision

Comitter:
philipperenoire
Date:
Mon Jun 27 09:32:44 2016 +0000
Parent:
1:a456aa3935ca
Commit message:

Changed in this revision

Stepper.h Show annotated file Show diff for this revision Revisions of this file
diff -r a456aa3935ca -r 7add6d8dfc47 Stepper.h
--- a/Stepper.h	Mon Sep 22 14:18:31 2014 +0000
+++ b/Stepper.h	Mon Jun 27 09:32:44 2016 +0000
@@ -121,10 +121,10 @@
     unsigned int _steps;                    //nbr total of steps per mov
     DigitalOut _clk;                        //output clock pin 
     DigitalOut _dir;                        //output dir pin
-    enum {STOP,ACCEL,CRUISE,DECEL}_state;  //Motor state
+    enum {STOP,ACCEL,CRUISE,DECEL}_state;   //Motor state
     unsigned int _dt0;                      //initial delay [µs]
     unsigned int _dtmin;                    //delay minimum [µs]
-    unsigned int _dtn;                             //current delay
+    unsigned int _dtn;                      //current delay
     int _pos;                               //motor position
     unsigned int _n;                        //steps counters
     unsigned int _nStartDec;                //steps to decelerate