From d1d9575052c0e9adeac447b5297dfba69447eb41 Mon Sep 17 00:00:00 2001 From: ig Date: Thu, 22 Jun 2023 10:15:57 +0200 Subject: [PATCH] Trumpf DcDc does not support changing sign convention (producer/consumer), so we have to manually flip the sign of currents in our code --- .../Lib/Devices/Trumpf/TruConvertDc/Status/DcDcStatus.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csharp/Lib/Devices/Trumpf/TruConvertDc/Status/DcDcStatus.cs b/csharp/Lib/Devices/Trumpf/TruConvertDc/Status/DcDcStatus.cs index 3b27cc4a6..c6635a3ea 100644 --- a/csharp/Lib/Devices/Trumpf/TruConvertDc/Status/DcDcStatus.cs +++ b/csharp/Lib/Devices/Trumpf/TruConvertDc/Status/DcDcStatus.cs @@ -27,13 +27,13 @@ public class DcDcStatus Link = DcBus.FromVoltageCurrent ( voltage: _Self.DcLinkVoltage, - current: linkCurrent + current: -linkCurrent // TODO: review sign is reversed ), Battery = DcBus.FromVoltageCurrent ( - voltage: _Self.BatteryVoltage, - current: batteryCurrent - ) + voltage: _Self.BatteryVoltage, + current: -batteryCurrent // TODO: review sign is reversed + ) }; } }