feat: remove FPS global define from libpasada
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
project(Pasada_Lib)
|
||||
|
||||
SET(PASADA_SRC
|
||||
library.cpp
|
||||
iir_filter.cpp
|
||||
ssf_filter.cpp
|
||||
pd_signal.cpp
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#ifndef LIBPASADA_LIBRARY_H
|
||||
#define LIBPASADA_LIBRARY_H
|
||||
|
||||
void hello();
|
||||
|
||||
#endif // LIBPASADA_LIBRARY_H
|
||||
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#include "library.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
void hello() {
|
||||
std::cout << "Hello, World!" << std::endl;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user