C++ class for controlling DC motor with encoder feedback. Dependencies include LS7366LIB, MotCon, and PID.

Dependencies:   LS7366LIB MotCon2 PID

Dependents:   LPC1768_6axis_Arm

Revision:
10:32faca5a2577
Parent:
9:7bc59203ce98
Child:
11:93d924320ddc
--- a/Axis.h	Mon Aug 29 19:42:07 2016 +0000
+++ b/Axis.h	Wed Aug 31 21:46:27 2016 +0000
@@ -10,7 +10,7 @@
 
 class Axis{
 public:
-    Axis(SPI& _spi, PinName _cs, PinName _pwm, PinName _dir, PinName _analog, int* limit, int *busy);    
+    Axis(SPI& _spi, PinName _cs, PinName _pwm, PinName _dir, PinName _analog, int* limit);    
     void paramUpdate(void);
     void center(void);
     void init(void);
@@ -42,7 +42,6 @@
     int moveState;
     int debug;
     int *ptr_limit;
-    int *ptr_busy;
     float motCurrent;   //motor current read from readCurrent() function
     float mot_I_lim;    //max current limit
     int axisState;