Pousse-Seringue Ulg
Dependents: Pousse_seringue_Ulg 0__Pousse_seringue
Fork of Stepper by
Diff: Stepper.h
- Revision:
- 2:7add6d8dfc47
- Parent:
- 1:a456aa3935ca
--- 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