When direction is REVERSE, scale them negative so the sign is correct for power flow diagrams. Issue #4833 (info on values from original #1072)
@@ -68,6 +68,10 @@ entities:
class: measurement
mapping:
- scale: 10
+ constraint: direction
+ conditions:
+ - dps_val: REVERSE
+ scale: -10
- id: 102
type: string
optional: true
@@ -91,6 +95,10 @@ entities:
- id: 104
@@ -232,6 +240,14 @@ entities:
- scale: 1000
+ scale: -1000
+ - id: 102
+ type: string
+ optional: true
+ name: direction
- id: 117
type: integer
name: calibration
@@ -251,6 +267,14 @@ entities:
+ - id: 104
- id: 123