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
Diff: Calibration/calibration.cpp
- Revision:
- 51:b0a3ef66ea3d
- Parent:
- 47:e1196a851f76
diff -r ba72df25d10f -r b0a3ef66ea3d Calibration/calibration.cpp
--- a/Calibration/calibration.cpp Thu Apr 04 13:53:58 2019 +0000
+++ b/Calibration/calibration.cpp Wed May 08 01:17:38 2019 +0000
@@ -85,7 +85,7 @@
const int n = 128*NPP; // number of positions to be sampled per mechanical rotation. Multiple of NPP for filtering reasons (see later)
const int n2 = 40; // increments between saved samples (for smoothing motion)
- float delta = 2*PI*NPP/(n*n2); // change in angle between samples
+ float delta = 2*PI*NPP/(n*n2); // change in angle between samples 0.703125deg 0.00122718463030851298377447007159rad
error_f = new float[n](); // error vector rotating forwards
error_b = new float[n](); // error vector rotating backwards
const int n_lut = 128;