firmware: add persistent level calibration

This commit is contained in:
2026-07-17 02:37:49 -06:00
parent fb2ca464b9
commit 4f96902068
9 changed files with 212 additions and 9 deletions
@@ -21,3 +21,7 @@
#define TELEMETRY_INTERVAL_MS 200
#define SENSOR_STALE_MS 2000
#define USB_TELEMETRY_ENABLED 1
#define LEVEL_CALIBRATION_DURATION_MS 5000
#define LEVEL_CALIBRATION_MIN_SAMPLES 100
#define LEVEL_CALIBRATION_MAX_MOVEMENT_DEGREES 2.0f
#define RS485_COMMAND_MAX_LENGTH 192