Skip to content

CalibratedSensor: Allow calibration with provided lut#83

Open
schnili wants to merge 1 commit intosimplefoc:devfrom
schnili:dev
Open

CalibratedSensor: Allow calibration with provided lut#83
schnili wants to merge 1 commit intosimplefoc:devfrom
schnili:dev

Conversation

@schnili
Copy link
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).
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.

1 participant