feat: remove FPS global define from libpasada

This commit is contained in:
2026-05-19 22:46:28 +02:00
parent 29019f61e5
commit b333712d9c
9 changed files with 14 additions and 45 deletions

View File

@@ -1,7 +1,6 @@
project(Pasada_Lib)
SET(PASADA_SRC
library.cpp
iir_filter.cpp
ssf_filter.cpp
pd_signal.cpp

View File

@@ -1,6 +0,0 @@
#ifndef LIBPASADA_LIBRARY_H
#define LIBPASADA_LIBRARY_H
void hello();
#endif // LIBPASADA_LIBRARY_H

View File

@@ -8,7 +8,7 @@
#include "iir_filter.h"
#include <deque>
#define FPS 60
/** max step rate detected: defines the length of "refractory period" which ignores additional, spurious edges in accelerometer */
#define MAX_BPM 300
/**

View File

@@ -1,7 +0,0 @@
#include "library.h"
#include <iostream>
void hello() {
std::cout << "Hello, World!" << std::endl;
}

View File

@@ -13,10 +13,6 @@ StepDetector::StepDetector(double fps, StepListener *listener, bool debug) :
debug(debug)
{}
#if (FPS != 60)
#error "FPS must currently be 60, as highpass taps are pre-computed for that value"
#endif
void StepDetector::filter(std::vector<float> values) {
// TODO: later on, we should use a vector projection towards gravity
auto s1 = (double) values[1]; // take y-axis value for now