mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
hook: pmu_dft clenaup ifdefs for dumper
Signed-off-by: Manuel Pitz <manuel.pitz@eonerc.rwth-aachen.de>
This commit is contained in:
parent
e7e168d5f2
commit
536b39e96d
1 changed files with 4 additions and 3 deletions
|
@ -112,11 +112,11 @@ protected:
|
|||
Dumper origSigSync;
|
||||
Dumper windowdSigSync;
|
||||
Dumper ppsSigSync;
|
||||
#endif
|
||||
Dumper phasorRocof;
|
||||
Dumper phasorPhase;
|
||||
Dumper phasorAmplitude;
|
||||
Dumper phasorFreq;
|
||||
#endif
|
||||
|
||||
double angleUnitFactor;
|
||||
double phaseOffset;
|
||||
|
@ -164,11 +164,11 @@ public:
|
|||
origSigSync(dumperPrefix + "origSigSync"),
|
||||
windowdSigSync(dumperPrefix + "windowdSigSync"),
|
||||
ppsSigSync(dumperPrefix + "ppsSigSync"),
|
||||
#endif
|
||||
phasorRocof(dumperPrefix + "phasorRocof"),
|
||||
phasorPhase(dumperPrefix + "phasorPhase"),
|
||||
phasorAmplitude(dumperPrefix + "phasorAmplitude"),
|
||||
phasorFreq(dumperPrefix + "phasorFreq"),
|
||||
#endif
|
||||
angleUnitFactor(1),
|
||||
phaseOffset(0.0),
|
||||
frequencyOffset(0.0),
|
||||
|
@ -453,7 +453,7 @@ public:
|
|||
lastResult[i] = currentResult;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DFT_MEM_DUMP
|
||||
// The following is a debug output and currently only for channel 0
|
||||
if (dumperEnable && windowSize * 5 < smpMemPos){
|
||||
phasorFreq.writeDataBinary(1, &(smp->data[0 * 4 + 0].f));
|
||||
|
@ -461,6 +461,7 @@ public:
|
|||
phasorAmplitude.writeDataBinary(1, &(smp->data[0 * 4 + 1].f));
|
||||
phasorRocof.writeDataBinary(1, &(smp->data[0 * 4 + 3].f));
|
||||
}
|
||||
#endif
|
||||
|
||||
smp->length = windowSize < smpMemPos ? signalIndices.size() * 4 : 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue