add virtual devices
This commit is contained in:
parent
dbfb1b3707
commit
d88fc677b5
|
@ -1,6 +1,7 @@
|
|||
using InnovEnergy.App.SaliMax.SaliMaxRelays;
|
||||
using InnovEnergy.App.SaliMax.System;
|
||||
using InnovEnergy.App.SaliMax.SystemConfig;
|
||||
using InnovEnergy.App.SaliMax.VirtualDevices;
|
||||
using InnovEnergy.Lib.Devices.AMPT;
|
||||
using InnovEnergy.Lib.Devices.Battery48TL;
|
||||
using InnovEnergy.Lib.Devices.EmuMeter;
|
||||
|
@ -15,10 +16,15 @@ public record StatusRecord
|
|||
public DcDcDevicesRecord DcDc { get; init; } = null!;
|
||||
public Battery48TlRecords Battery { get; init; } = null!;
|
||||
public EmuMeterRegisters? GridMeter { get; init; }
|
||||
public EmuMeterRegisters? CriticalLoad { get; init; }
|
||||
public EmuMeterRegisters? LoadOnAcIsland { get; init; }
|
||||
public AcDevicePower? LoadOnAcGrid { get; init; } = null!;
|
||||
public AcDevicePower? PvOnAcGrid { get; init; } = null!;
|
||||
public AcDevicePower? PvOnAcIsland { get; init; } = null!;
|
||||
public DcDevicePower? LoadOnDc { get; init; } = null!;
|
||||
public RelaysRecord? Relays { get; init; }
|
||||
public AmptStatus Mppt { get; init; } = null!;
|
||||
public AmptStatus PvOnDc { get; init; } = null!;
|
||||
public Config Config { get; init; } = null!;
|
||||
public SystemState SystemState { get; } = new SystemState();
|
||||
public EssControl Ess { get; set; } = null!;
|
||||
public EssControl EssControl { get; set; } = null!;
|
||||
public StateMachine StateMachine { get; } = new StateMachine();
|
||||
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
using InnovEnergy.Lib.Units.Composite;
|
||||
|
||||
namespace InnovEnergy.App.SaliMax.VirtualDevices;
|
||||
|
||||
public class AcDevicePower
|
||||
{
|
||||
public AcPower Power { get; init; } = AcPower.Null;
|
||||
|
||||
public static AcDevicePower Null { get; } = new AcDevicePower();
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
using InnovEnergy.Lib.Units.Power;
|
||||
|
||||
namespace InnovEnergy.App.SaliMax.VirtualDevices;
|
||||
|
||||
public class DcDevicePower
|
||||
{
|
||||
public DcPower Power { get; init; } = DcPower.Null;
|
||||
}
|
Loading…
Reference in New Issue