google_battery: ravg and new algos
Add soc_low to google_resistance, cleanup the code and the logging.
Add debug entries to set/reset the value.
Bug: 223759710
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I48a92218f6c54e7d1644eca73e5462365a495b98
diff --git a/google_bms.h b/google_bms.h
index ca62d9d..8aef90a 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -550,7 +550,11 @@
/* Battery Health */
enum bhi_algo {
BHI_ALGO_DISABLED = 0,
- BHI_ALGO_V1 = 1,
+
+ BHI_ALGO_ACHI_QRES = 1, /* avg from history, qual resistance */
+ BHI_ALGO_ACHI_RAVG = 2, /* avg capacity from history, google_resistance */
+ BHI_ALGO_GCAP_RAVG = 3, /* google_capacity, google_resistance */
+ BHI_ALGO_MIX_N_MATCH = 4,
BHI_ALGO_MAX,
};