初定版本

Dependencies:   mbed Hobbyking_Cheetah FastPWM3

Revision:
55:d57335792cb7
Parent:
47:e1196a851f76
--- a/Calibration/calibration.cpp	Thu Aug 08 17:39:43 2019 +0000
+++ b/Calibration/calibration.cpp	Tue May 10 02:10:43 2022 +0000
@@ -232,7 +232,8 @@
             
         ps->WriteLUT(lut);                                                      // write lookup table to position sensor object
         //memcpy(controller->cogging, cogging_current, sizeof(controller->cogging));  //compensation doesn't actually work yet....
-        memcpy(&ENCODER_LUT, lut, sizeof(lut));                                 // copy the lookup table to the flash array
+        //memcpy(&ENCODER_LUT, lut, sizeof(lut));                                 // copy the lookup table to the flash array        
+        memcpy(&ENCODER_LUT, lut, 512);                                 // copy the lookup table to the flash array  // modified on 20210615
         printf("\n\rEncoder Electrical Offset (rad) %f\n\r",  offset);
         
         if (!prefs->ready()) prefs->open();