feat: detect steps and play audio
This commit is contained in:
26
app/src/main/cpp/StepDetector.h
Normal file
26
app/src/main/cpp/StepDetector.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user