Trumpf DcDc does not support changing sign convention (producer/consumer), so we have to manually flip the sign of currents in our code

This commit is contained in:
ig 2023-06-22 10:15:57 +02:00
parent 12731a90e9
commit d1d9575052
1 changed files with 4 additions and 4 deletions

View File

@ -27,13 +27,13 @@ public class DcDcStatus
Link = DcBus.FromVoltageCurrent Link = DcBus.FromVoltageCurrent
( (
voltage: _Self.DcLinkVoltage, voltage: _Self.DcLinkVoltage,
current: linkCurrent current: -linkCurrent // TODO: review sign is reversed
), ),
Battery = DcBus.FromVoltageCurrent Battery = DcBus.FromVoltageCurrent
( (
voltage: _Self.BatteryVoltage, voltage: _Self.BatteryVoltage,
current: batteryCurrent current: -batteryCurrent // TODO: review sign is reversed
) )
}; };
} }
} }