Skip to content

Multiple Voltage Sources and Calibration UI - #3644

Merged
pkendall64 merged 16 commits into
ExpressLRS:masterfrom
pkendall64:4.1/voltage-sensor-calibration
May 27, 2026
Merged

pkendall64 merged 16 commits into
ExpressLRS:masterfrom
pkendall64:4.1/voltage-sensor-calibration

Conversation

@pkendall64

Copy link
Copy Markdown
Collaborator

Theres a few things in this PR (some not strictly to do with the main part)

  1. Various size reduction changes and fixes
    • Added CSS tree-shaking to reduce the size of CSS artefact by removing unused CSS at build time
    • Fixes a bug where some requests we executed twice
    • Some UI enhancements to show a loading dialog that may take some time on slow devices
    • Some documentation on the UI build system plugins, and some filesystem reorganisation
  2. Allow up to 4 voltage sources (including VBat/VExt)
  3. A voltage calibration UI (there are additional hardware properties to support this)
    • vsrc1_*, vsrc2_*, vsrc3_*
    • v*_cal_min, v*_cal_max - these would be set by the manufacturer and are considered as hard limits.

The CSS tree shaking remove another 3k from the web asset size 🎉 , and then I took it all away (plus a bit more) in the calibration UI 😏

Screen.Recording.2026-05-11.at.1.20.45.PM.mp4

@pkendall64 pkendall64 added enhancement 🪄 New feature or request V4.1 🍑 labels May 11, 2026

@mha1 mha1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ok for all four sources.

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow this is much nicer than the calibration I had in mind that forced the user to type in all the values. Really great stuff!

Comment thread src/html/src/utils/hardware-schema.js Resolved
Comment thread src/lib/AnalogVbat/devAnalogVbat.cpp Resolved
Comment thread src/lib/AnalogVbat/VbatCalibration.cpp Resolved
Comment thread src/lib/AnalogVbat/VbatCalibration.cpp Resolved
@pkendall64
pkendall64 merged commit 3ef1360 into ExpressLRS:master May 27, 2026
26 checks passed
@pkendall64
pkendall64 deleted the 4.1/voltage-sensor-calibration branch May 27, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants