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:
@@ -86,12 +86,6 @@ void check_load_terminal_readings()
|
||||
TEST_ASSERT_EQUAL_FLOAT(adcval.load_current, round(load.current * 10) / 10);
|
||||
}
|
||||
|
||||
void check_lv_bus_int_readings()
|
||||
{
|
||||
TEST_ASSERT_EQUAL_FLOAT(adcval.battery_voltage, round(dcdc_lv_port.bus->voltage * 10) / 10);
|
||||
TEST_ASSERT_EQUAL_FLOAT(adcval.dcdc_current, round(dcdc_lv_port.current * 10) / 10);
|
||||
}
|
||||
|
||||
void check_temperature_readings()
|
||||
{
|
||||
TEST_ASSERT_EQUAL_FLOAT(adcval.bat_temperature, round(charger.bat_temperature * 10) / 10);
|
||||
@@ -208,7 +202,6 @@ void daq_tests()
|
||||
RUN_TEST(check_solar_terminal_readings);
|
||||
RUN_TEST(check_bat_terminal_readings);
|
||||
RUN_TEST(check_load_terminal_readings);
|
||||
RUN_TEST(check_lv_bus_int_readings);
|
||||
|
||||
//RUN_TEST(check_temperature_readings); // TODO
|
||||
|
||||
|
||||
Reference in New Issue
Block a user