Gu Jasper / Motor_200Nm_V0

Dependencies:   mbed-dev-f303 FastPWM3

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;