fix DcVoltages in inverter

This commit is contained in:
ig 2023-06-20 09:50:28 +02:00
parent 5f54dd602f
commit 5828498109
2 changed files with 4 additions and 5 deletions

View File

@ -10,11 +10,10 @@ namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertAc.Status;
public class AcDcStatus
{
public Ac3Bus Ac => Ac3Bus.FromPhasesAndFrequency(L1, L2, L3, _Self.GridFrequency);
public DcBus Dc => DcBus.FromVoltageCurrent(_Self.BatteryVoltage, _Self.BatteryCurrent);
public PowerLimit PowerLimitedBy => _Self.PowerLimitedBy;
public InverterStates InverterState => new(_Self);
public GridType ActiveGridType => _Self.ActiveGridType;
public Voltages Voltage => new(_Self);
public Voltages DcVoltages => new(_Self);
public Temperatures Temperature => new(_Self);
public OverloadCapacity OverloadCapacity => new(_Self);
public Nominals Nominal => new(_Self);

View File

@ -4,8 +4,8 @@ namespace InnovEnergy.Lib.Devices.Trumpf.TruConvertAc.Status;
public class ExternVoltages
{
public Voltage DcUpperHalf => _Self.ExternDcVoltageUpperHalf;
public Voltage DcLowerHalf => _Self.ExternDcVoltageLowerHalf;
public Voltage UpperHalf => _Self.ExternDcVoltageUpperHalf;
public Voltage LowerHalf => _Self.ExternDcVoltageLowerHalf;
public Voltage NToPe => _Self.ExternVoltageNToPe;
internal ExternVoltages(AcDcRecord self) => _Self = self;