27 lines
482 B
C
27 lines
482 B
C
|
|
//
|
||
|
|
// Created by david on 03.03.2026.
|
||
|
|
//
|
||
|
|
|
||
|
|
#ifndef LOCKSTEP_STEPDETECTOR_H
|
||
|
|
#define LOCKSTEP_STEPDETECTOR_H
|
||
|
|
|
||
|
|
#include "StepListener.h"
|
||
|
|
#include "iir_filter.h"
|
||
|
|
#include "ssf_filter.h"
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
class StepDetector {
|
||
|
|
protected:
|
||
|
|
StepListener *listener;
|
||
|
|
IirFilter f_highpass;
|
||
|
|
Filt f_neg;
|
||
|
|
SsfFilter f_ssf;
|
||
|
|
SsfStepDetector f_ssd;
|
||
|
|
|
||
|
|
public:
|
||
|
|
StepDetector(StepListener *listener);
|
||
|
|
void filter(std::vector<float> values);
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif //LOCKSTEP_STEPDETECTOR_H
|