1
Dependencies: mbed-dev-f303 FastPWM3
Diff: Calibration/calibration.cpp
- Revision:
- 52:d4d5e3414865
- Parent:
- 51:29e1686e8b3e
- Child:
- 53:32218a36df05
diff -r 29e1686e8b3e -r d4d5e3414865 Calibration/calibration.cpp --- a/Calibration/calibration.cpp Thu Aug 06 07:25:51 2020 +0000 +++ b/Calibration/calibration.cpp Sat Aug 08 13:43:20 2020 +0000 @@ -228,7 +228,7 @@ 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, 128*4); // copy the lookup table to the flash array printf("\n\rEncoder Electrical Offset (rad) %f\n\r", offset); if (!prefs->ready()) prefs->open();