? (phase + 1) % chargingStation.getNumberOfPhases()
: chargingStation.getNumberOfPhases()
}`;
+ const voltagePhaseLineToLineValueRounded = roundTo(
+ Math.sqrt(chargingStation.getNumberOfPhases()) *
+ chargingStation.stationInfo.voltageOut!,
+ 2,
+ );
const voltagePhaseLineToLineSampledValueTemplate =
OCPP16ServiceUtils.getSampledValueTemplate(
chargingStation,
voltagePhaseLineToLineSampledValueTemplate.value,
)
? parseInt(voltagePhaseLineToLineSampledValueTemplate.value)
- : roundTo(
- Math.sqrt(chargingStation.getNumberOfPhases()) *
- chargingStation.stationInfo.voltageOut!,
- 2,
- );
+ : voltagePhaseLineToLineValueRounded;
const fluctuationPhaseLineToLinePercent =
voltagePhaseLineToLineSampledValueTemplate.fluctuationPercent ??
Constants.DEFAULT_FLUCTUATION_PERCENT;
);
}
const defaultVoltagePhaseLineToLineMeasurandValue = getRandomFloatFluctuatedRounded(
- Math.sqrt(chargingStation.getNumberOfPhases()) *
- chargingStation.stationInfo.voltageOut!,
+ voltagePhaseLineToLineValueRounded,
fluctuationPercent,
);
meterValue.sampledValue.push(