The dcdc power has to use the dcdc current and voltage instead of the output voltage (which can be low side - buck or high side - boost) and the dcdc current instead of the out current. See #44 for the discussion on this issue.
This commit is contained in:
@@ -104,6 +104,7 @@ void update_measurements(Dcdc *dcdc, Charger *charger, DcBus *hs, DcBus *ls, DcB
|
||||
ADC_GAIN_V_BAT / 1000.0;
|
||||
|
||||
load_bus->voltage = ls->voltage;
|
||||
dcdc->ls_voltage = ls->voltage;
|
||||
|
||||
hs->voltage =
|
||||
(float)(((adc_filtered[ADC_POS_V_SOLAR] >> (4 + ADC_FILTER_CONST)) * vcc) / 4096) *
|
||||
|
||||
Reference in New Issue
Block a user