Skip to content

CalibratedSensor: Allow saving of lut at runtime #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Schnilz
Copy link

@Schnilz Schnilz commented Jun 16, 2025

I continued with my little project and refactored the CalibrationSensor for more flexibility 😃

The current API does not expose the LUT so you cant save it on runtime and need to recompile the code for every motor with its specific calibration data. This change allows you to write code that saves the data to non volatile storage (like EEPROM and ESP32 flash NVS) and load on the next power cycle.

also fixes #17

@Schnilz Schnilz changed the title CalibratedSensor: Allow runtime saving of lut CalibratedSensor: Allow saving of lut at runtime Jun 16, 2025
Before this change you needed to recompile the
code with the calibration data. This change allows
you to write code that saves the data to non
volatile storage and load on the next power cycle
@runger1101001 runger1101001 self-assigned this Jun 17, 2025
@runger1101001 runger1101001 added the enhancement New feature or request label Jun 17, 2025
@runger1101001
Copy link
Member

Thank you very much for contributing this! It looks like cool functionality that we should add...

A couple of points:

  • However, I am a bit confused, is it necessary to combine the AbsIncSensor and the calibrated sensor? Can we separate these concerns?
  • its making all the tests fail, I think there are still some modifications to do to make it compile cleanly

@Schnilz
Copy link
Author

Schnilz commented Jun 17, 2025

Sry, I pushed the AbsIncSensor stuff to the wrong remote 😅
I hope now the tests pass again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants