1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00

adapt code style

This commit is contained in:
Manuel Pitz 2021-02-16 11:16:09 +01:00
parent fc036202d1
commit a27c84e366
2 changed files with 7 additions and 7 deletions

View file

@ -55,7 +55,7 @@ protected:
Dumper* ppsSigSync; Dumper* ppsSigSync;
Dumper* windowdSigSync; Dumper* windowdSigSync;
Dumper* phasorPhase; Dumper* phasorPhase;
Dumper* phasorAmpitude; Dumper* phasorAmplitude;
Dumper* phasorFreq; Dumper* phasorFreq;
windowType window_type; windowType window_type;
@ -121,7 +121,7 @@ public:
ppsSigSync = new Dumper("/tmp/plot/ppsSigSync"); ppsSigSync = new Dumper("/tmp/plot/ppsSigSync");
windowdSigSync = new Dumper("/tmp/plot/windowdSigSync"); windowdSigSync = new Dumper("/tmp/plot/windowdSigSync");
phasorPhase = new Dumper("/tmp/plot/phasorPhase"); phasorPhase = new Dumper("/tmp/plot/phasorPhase");
phasorAmpitude = new Dumper("/tmp/plot/phasorAmpitude"); phasorAmplitude = new Dumper("/tmp/plot/phasorAmplitude");
phasorFreq = new Dumper("/tmp/plot/phasorFreq"); phasorFreq = new Dumper("/tmp/plot/phasorFreq");
} }
@ -132,7 +132,7 @@ public:
delete ppsSigSync; delete ppsSigSync;
delete windowdSigSync; delete windowdSigSync;
delete phasorPhase; delete phasorPhase;
delete phasorAmpitude; delete phasorAmplitude;
delete phasorFreq; delete phasorFreq;
} }
@ -392,7 +392,7 @@ public:
origSigSync->writeData(window_size,tmp_smp_window); origSigSync->writeData(window_size,tmp_smp_window);
if (dftCalcCnt > 1) if (dftCalcCnt > 1)
phasorAmpitude->writeData(1,&tmp_smp_window[window_size - 1]); phasorAmplitude->writeData(1,&tmp_smp_window[window_size - 1]);
for (uint i = 0; i< window_size; i++) for (uint i = 0; i< window_size; i++)
tmp_smp_window[i] *= filterWindowCoefficents[i]; tmp_smp_window[i] *= filterWindowCoefficents[i];
@ -444,7 +444,6 @@ public:
} }
} }
window_corretion_factor /= window_size; window_corretion_factor /= window_size;
//dumpData("/tmp/plot/filter_window",filterWindowCoefficents,window_size);
} }
}; };

View file

@ -29,6 +29,7 @@
#include <villas/sample.h> #include <villas/sample.h>
#include <villas/log.h> #include <villas/log.h>
#include <cinttypes>
namespace villas { namespace villas {
namespace node { namespace node {
@ -162,7 +163,7 @@ public:
if ((smp->sequence - last_sequence) > 1) if ((smp->sequence - last_sequence) > 1)
warning("Samples missed: %li sampled missed", smp->sequence - last_sequence); warning("Samples missed: %" PRIu64 " sampled missed", smp->sequence - last_sequence);
last_sequence = smp->sequence; last_sequence = smp->sequence;