DC/DC: Use high/low DcBus instead of PowerPort for control

This makes more sense because the DC/DC converter actually connects two
DcBuses and does not need separate PowerPorts. Also makes the code look
more clean as variable access like dcdc.hvs->bus->voltage is avoided.

The DcBus pointers in the Dcdc are now called hvb and lvb for high-
voltage side bus and low-voltage side bus.
This commit is contained in:
Martin Jäger
2020-11-05 20:42:34 +01:00
parent 0756341b29
commit b63cdaa06d
9 changed files with 122 additions and 105 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ void dev_stat_new_bat_voltage_max()
void dev_stat_new_dcdc_current_max()
{
dcdc.lvs->current = 21;
dcdc.inductor_current = 21;
dev_stat.update_min_max_values();
TEST_ASSERT_EQUAL(21, dev_stat.dcdc_current_max);
}