Use Math.Abs for the signed currents
This commit is contained in:
parent
26422284dd
commit
8a0407f538
|
@ -35,20 +35,20 @@ public class EmuMeterRegisters : IAc3Meter
|
||||||
{
|
{
|
||||||
L1 = new ()
|
L1 = new ()
|
||||||
{
|
{
|
||||||
Current = _CurrentL1,
|
Current = Abs(_CurrentL1),
|
||||||
Voltage = _VoltageL1N,
|
Voltage = Abs(_VoltageL1N),
|
||||||
Phi = Atan2(_ReactivePowerL1, _ActivePowerL1)
|
Phi = Atan2(_ReactivePowerL1, _ActivePowerL1)
|
||||||
},
|
},
|
||||||
L2 = new ()
|
L2 = new ()
|
||||||
{
|
{
|
||||||
Current = _CurrentL2,
|
Current = Abs(_CurrentL2),
|
||||||
Voltage = _VoltageL2N,
|
Voltage = Abs(_VoltageL2N),
|
||||||
Phi = Atan2(_ReactivePowerL2, _ActivePowerL2)
|
Phi = Atan2(_ReactivePowerL2, _ActivePowerL2)
|
||||||
},
|
},
|
||||||
L3 = new ()
|
L3 = new ()
|
||||||
{
|
{
|
||||||
Current = _CurrentL3,
|
Current = Abs(_CurrentL3),
|
||||||
Voltage = _VoltageL3N,
|
Voltage = Abs(_VoltageL3N),
|
||||||
Phi = Atan2(_ReactivePowerL3, _ActivePowerL3)
|
Phi = Atan2(_ReactivePowerL3, _ActivePowerL3)
|
||||||
},
|
},
|
||||||
Frequency = _Frequency
|
Frequency = _Frequency
|
||||||
|
|
Loading…
Reference in New Issue