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

Dependencies:   LS7366LIB MotCon2 PID

Dependents:   LPC1768_6axis_Arm

Revision:
11:93d924320ddc
Parent:
10:32faca5a2577
Child:
12:b80cc2e27bdb
--- a/Axis.cpp	Wed Aug 31 21:46:27 2016 +0000
+++ b/Axis.cpp	Tue Nov 15 15:41:33 2016 +0000
@@ -255,7 +255,7 @@
 }
 
 float Axis::readCurrent(void){    
-    motCurrent = (this->_analog.read() * 3.3)/ .525;  //525mV per amp
+    motCurrent = (this->_analog.read() * 3.3) / .525;  //525mV per amp
     return motCurrent;
 }