C++ class for controlling DC motor with encoder feedback. Dependencies include LS7366LIB, MotCon, and PID.
Dependencies: PID LS7366LIB MotCon2
Diff: Axis.h
- Revision:
- 5:79dcaa63700c
- Parent:
- 2:653433f4ee72
- Child:
- 7:d0458137d6e0
diff -r 4079f92f9c26 -r 79dcaa63700c Axis.h --- a/Axis.h Wed Oct 07 17:32:13 2015 +0000 +++ b/Axis.h Thu Dec 17 19:06:27 2015 +0000 @@ -19,6 +19,7 @@ float readCurrent(void); void axisOff(void); void axisOn(void); + void zero(void); long enc; float co;// = 0.0; @@ -41,6 +42,7 @@ int *ptr_limit; float totalCounts; float motCurrent; + float mot_I_lim; int axisState; Ticker update;