Skip to content

CalibratedSensor: Allow calibration with provided lut#83

Merged
runger1101001 merged 1 commit intosimplefoc:devfrom
schnili:dev
Apr 14, 2026
Merged

CalibratedSensor: Allow calibration with provided lut#83
runger1101001 merged 1 commit intosimplefoc:devfrom
schnili:dev

Conversation

@schnili
Copy link
Copy Markdown
Contributor

@schnili schnili commented Mar 11, 2026

Hi,

I think i found a logic error. The return in calibrate prevents providing a lut and writing to it and since the allocated lut is protected in the class there is no way to extract at runtime.

The README:150 already suggests not calling calibrate when you provide a valid lut.

...and sry for not updating the README.md correctly last PR :/

If a lut was provided the calibration was simply skipped.
If you do not provide a lut it gets allocated but you cant
extract the data at runntime (only via printLUT).
@runger1101001
Copy link
Copy Markdown
Member

Thanks for this contribution, much appreciated!

@runger1101001 runger1101001 merged commit a47a7f5 into simplefoc:dev Apr 14, 2026
2 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants