Mini Cheetah Actuator Branch Superseded by: https://github.com/bgkatz/motorcontrol

Dependencies:   mbed-dev-f303 FastPWM3

Superseded by: https://github.com/bgkatz/motorcontrol

Revision:
35:69b24894c11d
Parent:
34:51647c6c500d
Child:
36:d88fd41f60a6
--- a/PositionSensor/PositionSensor.cpp	Wed Nov 08 15:18:18 2017 +0000
+++ b/PositionSensor/PositionSensor.cpp	Sat Nov 18 18:41:42 2017 +0000
@@ -63,7 +63,7 @@
         vel = (modPosition-oldModPosition)*40000.0f;
     }    
     
-    int n = 16;
+    int n = 40;
     float sum = vel;
     for (int i = 1; i < (n); i++){
         velVec[n - i] = velVec[n-i-1];