Motor current controller

Fork of CURRENT_CONTROL by LDSC_Robotics_TAs

Revision:
18:76383af914dc
Parent:
17:7f16cc2e46fc
Child:
19:24605ba48462
diff -r 7f16cc2e46fc -r 76383af914dc CURRENT_CONTROL.cpp
--- a/CURRENT_CONTROL.cpp	Wed Jan 04 14:39:07 2017 +0000
+++ b/CURRENT_CONTROL.cpp	Fri Jan 20 15:45:51 2017 +0000
@@ -52,7 +52,7 @@
     MotorMinus(PwmChannel2),
     wheelSpeed(QEI_A, QEI_B, NC, pulsesPerRev, arraysize, samplingTime, QEI::X4_ENCODING), //(pin1, pin2, pin3, pulsesPerRev, arraysize, sampletime, pulses)
     pid(0.0,0.0,0.0,samplingTime),
-    lpFilter(samplingTime, 200.0) // 1.5915 Hz = 10 rad/s
+    lpFilter(samplingTime, 400.0) // 1.5915 Hz = 10 rad/s
 
 
 {