Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-dev-f303 FastPWM3
Dependents: GT_MOTOR_24NM_V03 GT_MOTOR_24NM_V03_PT1000CalTemp
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];