hobbyking_cheetah source code modified 2020/12/15
Dependencies: mbed-dev-f303 FastPWM3
Diff: PositionSensor/PositionSensor.cpp
- Revision:
- 35:69b24894c11d
- Parent:
- 34:51647c6c500d
- Child:
- 36:d88fd41f60a6
diff -r 51647c6c500d -r 69b24894c11d PositionSensor/PositionSensor.cpp --- 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];