Use Math.Abs for the signed currents

This commit is contained in:
atef 2023-09-01 14:15:06 +02:00
parent 26422284dd
commit 8a0407f538
1 changed files with 6 additions and 6 deletions

View File

@ -35,20 +35,20 @@ public class EmuMeterRegisters : IAc3Meter
{
L1 = new ()
{
Current = _CurrentL1,
Voltage = _VoltageL1N,
Current = Abs(_CurrentL1),
Voltage = Abs(_VoltageL1N),
Phi = Atan2(_ReactivePowerL1, _ActivePowerL1)
},
L2 = new ()
{
Current = _CurrentL2,
Voltage = _VoltageL2N,
Current = Abs(_CurrentL2),
Voltage = Abs(_VoltageL2N),
Phi = Atan2(_ReactivePowerL2, _ActivePowerL2)
},
L3 = new ()
{
Current = _CurrentL3,
Voltage = _VoltageL3N,
Current = Abs(_CurrentL3),
Voltage = Abs(_VoltageL3N),
Phi = Atan2(_ReactivePowerL3, _ActivePowerL3)
},
Frequency = _Frequency