Merge C:/Users/david/Documents/src/lockstep/app/src/main/cpp/libpasada

This commit is contained in:
2026-06-14 16:25:11 +02:00
2 changed files with 12 additions and 8 deletions

View File

@@ -12,8 +12,8 @@
class StepListener {
public:
virtual ~StepListener() {}
virtual void playBeat() = 0;
virtual ~StepListener() = default;
virtual void playBeat(double t) = 0;
};
/** mean-filter the gravity vector, then take acceleration downwards */
@@ -60,10 +60,14 @@ public:
* @param debug collect debug buffers (used in unit tests)
*/
StepDetector(double fps, StepListener *listener, bool debug = false);
/** filter using raw accel samples (unevenly spaced and 3-dimensional) */
/**
* Push raw accelerometer values (unevenly sampled and 3-dimensional).
* @param ts timestamp in ns
* @param values acceleration values for x,y,z
*/
void filter(double ts, std::vector<float> values);
/** filter using scalar accel samples in \vec{e_g} direction */
void filter_a(double s1);
void filter_a(double t, double s1);
std::vector<double> getBufSsd();
std::vector<double> getBufSqi();
std::vector<double> getBufOut();
@@ -75,4 +79,4 @@ public:
double primeFilters(double fps, std::vector<double> sig);
};
#endif //PASADASUPERPROJECT_STEP_DETECTOR_H
#endif //PASADASUPERPROJECT_STEP_DETECTOR_H