Repository navigation
feat(i14-power,i14-ui): HW-CAR coulomb-counter fuel gauge and charge/discharge ETA - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FG_g_fg_dbg_bat_zcvOCV lookup ini14-battery-guardwith an Android-grade hardware coulomb-counter (FG_g_fg_dbg_car) fuel gauge (fuel_gauge.rs) that tracksq_rem_mahandq_max_mahacross charging, discharging, USB/charger resets, and reboots./mnt/data/media/0/i14-linux/battery-state.jsonand exposegauge_modeandq_rem_mah/q_max_mahin/run/i14-charge-status.json.68%instead of~4%) and estimated remaining charge / discharge time (~1h 58m to full,~20m to 80%,~11h 15m left) alongside the live current on thei14-uihome screen.Verification
cargo fmt --all -- --checkpassedcargo clippy --all-targets -- -D warningspassedcargo test -p i14-config -p i14-power -p i14-uipassed (including HW-CAR fuel-gauge unit/replay tests andi14-uiETA/parity tests)aarch64-unknown-linux-musl) and live-verified on the I14 phone (i14-battery-guard+i14-ui)