[FL-905] Add battery health state monitoring in power app (#358)
* add battery health reading from gauge * add battery health reading to api-hal-power * update battery health in power application Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -79,3 +79,7 @@ uint16_t bq27220_get_remaining_capacity() {
|
||||
uint16_t bq27220_get_state_of_charge() {
|
||||
return bq27220_read_word(CommandStateOfCharge);
|
||||
}
|
||||
|
||||
uint16_t bq27220_get_state_of_health() {
|
||||
return bq27220_read_word(CommandStateOfHealth);
|
||||
}
|
||||
|
@@ -69,3 +69,6 @@ uint16_t bq27220_get_remaining_capacity();
|
||||
|
||||
/* Get predicted remaining battery capacity in percents */
|
||||
uint16_t bq27220_get_state_of_charge();
|
||||
|
||||
/* Get ratio of full charge capacity over design capacity in percents */
|
||||
uint16_t bq27220_get_state_of_health();
|
||||
|
Reference in New Issue
Block a user