mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
dft: cleanup and fix missing logger
This commit is contained in:
parent
a275e21fa2
commit
82ad0374f4
1 changed files with 3 additions and 2 deletions
|
@ -72,7 +72,7 @@ protected:
|
|||
double phase;
|
||||
double rocof; /**< Rate of change of frequency. */
|
||||
};
|
||||
|
||||
Logger logger;
|
||||
enum WindowType windowType;
|
||||
enum PaddingType paddingType;
|
||||
enum FreqEstimationType freqEstType;
|
||||
|
@ -126,6 +126,7 @@ protected:
|
|||
public:
|
||||
DftHook(struct vpath *p, struct vnode *n, int fl, int prio, bool en = true) :
|
||||
Hook(p, n, fl, prio, en),
|
||||
logger(logging.get("hook:dft")),
|
||||
windowType(WindowType::NONE),
|
||||
paddingType(PaddingType::ZERO),
|
||||
freqEstType(FreqEstimationType::NONE),
|
||||
|
@ -295,7 +296,7 @@ public:
|
|||
throw ConfigError(jsonChannelList, "node-config-node-signal", "No parameter signalIndex given.");
|
||||
|
||||
windowSize = sampleRate * windowSizeFactor / (double) rate;
|
||||
logger->debug("Set windows size to {} samples which fits 1 / rate {}s", windowSize, 1.0 / rate);
|
||||
logger->debug("Set windows size to {} samples which fits {} / rate {}s", windowSize, windowSizeFactor, 1.0 / rate);
|
||||
|
||||
if (!windowTypeC)
|
||||
logger->info("No Window type given, assume no windowing");
|
||||
|
|
Loading…
Add table
Reference in a new issue