feat: remove FPS global define from libpasada
This commit is contained in:
@@ -19,9 +19,7 @@ TEST(HelloTest, Zong_SSF_Test5_a1) {
|
||||
|
||||
std::vector<double> signal = fetch_y_axis(acc, 2); // (ts, x, y, z) entries -> fetch 'y'
|
||||
|
||||
#if (FPS != 60)
|
||||
#error "FPS must currently be 60, as highpass taps are pre-computed for that value"
|
||||
#endif
|
||||
double fps = 60.0;
|
||||
|
||||
// Butterworth filter: order=5, fc=0.5, fs=60, btype='highpass'
|
||||
std::vector b {0.91875845, -4.59379227, 9.18758454, -9.18758454, 4.59379227, -0.91875845};
|
||||
@@ -40,13 +38,13 @@ TEST(HelloTest, Zong_SSF_Test5_a1) {
|
||||
//std::cerr << "before stage 2" << std::endl;
|
||||
|
||||
// Stage 2: sum slope function
|
||||
SsfFilter f_ssf(FPS);
|
||||
SsfFilter f_ssf(fps);
|
||||
auto ssf = apply_filter(f_ssf, y_neg);
|
||||
|
||||
//std::cerr << "before stage 3" << std::endl;
|
||||
|
||||
// Stage 3: threshold detection
|
||||
DebugSsfStepDetectorThreshold f_ssd_thr(FPS);
|
||||
DebugSsfStepDetectorThreshold f_ssd_thr(fps);
|
||||
auto ssf_threshold = apply_filter(f_ssd_thr, ssf);
|
||||
|
||||
//std::cerr << "before writing results 1 and doing step detection" << std::endl;
|
||||
@@ -55,7 +53,7 @@ TEST(HelloTest, Zong_SSF_Test5_a1) {
|
||||
npy_save("test5/ssf_a1_ssf.npy", ssf);
|
||||
npy_save("test5/ssf_a1_ssf_threshold.npy", ssf_threshold);
|
||||
|
||||
SsfStepDetector f_ssd(FPS);
|
||||
SsfStepDetector f_ssd(fps);
|
||||
auto steps = apply_filter(f_ssd, ssf);
|
||||
|
||||
//std::cerr << "before writing results 2" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user