PID motor controll for the biorobotics project.

Dependencies:   FastPWM QEI

Dependents:   PID_example Motor_calibration Demo_mode Demo_mode ... more

Revision:
9:48a0b4a67283
Parent:
8:bff5193c7d74
Child:
10:d50c4957a193
--- a/motor.cpp	Wed Oct 31 08:52:56 2018 +0000
+++ b/motor.cpp	Wed Oct 31 09:12:28 2018 +0000
@@ -26,6 +26,7 @@
     pid = PID();
     
     target_angle = 0;
+    extra_reduction_ratio = 1.0;
     
     printcount = 0;
     pid_period = 0;