ADC alerts and emergency stop functions added
Check for overvoltage/undervoltage conditions after each ADC reading cycle and trigger alert (stopping DC/DC, PWM switch and load output) if limits exceeded.
This commit is contained in:
@@ -351,6 +351,7 @@ void Charger::charge_control(BatConf *bat_conf)
|
||||
full = false;
|
||||
dev_stat.clear_error(ERR_BAT_CHG_OVERTEMP);
|
||||
dev_stat.clear_error(ERR_BAT_CHG_UNDERTEMP);
|
||||
dev_stat.clear_error(ERR_BAT_OVERVOLTAGE);
|
||||
enter_state(CHG_STATE_BULK);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user