Rename DC/DC operation mode and control names

New control states allow to specify the reason for derating more detailed,
also considering the input side.

The operation mode is now also used as a return value for
check_start_conditions function to get rid of magic numbers.
This commit is contained in:
Martin Jäger
2020-10-14 10:03:34 +02:00
parent c38f1c8348
commit db9c9c5b1c
6 changed files with 115 additions and 76 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ void control_thread()
// energy + soc calculation must be called exactly once per second
#if DT_NODE_EXISTS(DT_PATH(dcdc))
if (dcdc.state != DCDC_STATE_OFF) {
if (dcdc.state != DCDC_CONTROL_OFF) {
hv_terminal.energy_balance();
}
#endif