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:
parent
12731a90e9
commit
d1d9575052
|
@ -27,12 +27,12 @@ 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
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue