Chetan Sharma / Mbed OS HKCC_Controller_MBed_OS

Dependencies:   FastPWM3

Revision:
57:57a108e15b52
Parent:
55:5afc2865ef7f
--- a/Calibration/calibration.cpp	Thu Feb 25 22:51:02 2021 -0800
+++ b/Calibration/calibration.cpp	Sat Feb 27 17:50:10 2021 -0800
@@ -228,7 +228,7 @@
                 }
             lut[ind] = (int) ((error_filt[i*NPP] - mean)*(float)(ps->GetCPR())/(2.0f*PI));
             printf("%d   %d   %d \n\r", i, ind, lut[ind]);
-            ThisThread::sleep_for(1ms);
+            wait_us(1000);
             }
             
         ps->WriteLUT(lut);                                                      // write lookup table to position sensor object