mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-05-19 11:01:46 +02:00
Reset batttery charge in coloumbs on charge completion
This commit is contained in:
parent
21f313af5c
commit
fdd59a83e3
@ -178,6 +178,7 @@ void PowerManager::updatePowerStateHandler() {
|
|||||||
if (PowerManager::busPowered && !PowerManager::chargingState) {
|
if (PowerManager::busPowered && !PowerManager::chargingState) {
|
||||||
// Calibrate voltage offset on full Battery
|
// Calibrate voltage offset on full Battery
|
||||||
PowerManager::fullVoltageOffset = PowerParameters::Battery::DISCHARGE_CURVE::VOLTAGES[0] - getBatteryVoltage();
|
PowerManager::fullVoltageOffset = PowerParameters::Battery::DISCHARGE_CURVE::VOLTAGES[0] - getBatteryVoltage();
|
||||||
|
PowerManager::coloumbsRemaining = PowerParameters::Battery::CELL_CHARGE_FULL_COLOUMB;
|
||||||
}
|
}
|
||||||
|
|
||||||
ESP_LOGD(TAG, "Bus Powered: %d, Charging: %d", busPowered, chargingState);
|
ESP_LOGD(TAG, "Bus Powered: %d, Charging: %d", busPowered, chargingState);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user