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 Hobbyking_Cheetah FastPWM3
Diff: Calibration/calibration.cpp
- Revision:
- 55:165927e4f815
- Parent:
- 47:e1196a851f76
--- a/Calibration/calibration.cpp Thu Aug 08 17:39:43 2019 +0000
+++ b/Calibration/calibration.cpp Tue May 10 02:26:27 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();