ysoldak / HeadTracker

Zero configuration, auto-calibrating wireless DIY Head Tracker, for Nano 33 BLE and XIAO BLE Sense boards
The Unlicense
58 stars 8 forks source link

Store calibration to flash memory #38

Closed ysoldak closed 6 months ago

ysoldak commented 6 months ago

This enables startups be fast, since they do not require calibration.

The very first power up does require calibration from scratch. Every subsequent power up shall improve already good initial calibration. Improvements accumulate.

The stored calibration is discarded when reset button is pressed (connected to GND) on power up. The initial calibration process then starts anew and the result is stored to flash.

The stored calibration data can be lost when a new firmware version is flashed on device.

Also adjusted some parameters, fixed couple overflows and documented the calibration procedure.