feat: remove FPS global define from libpasada
This commit is contained in:
@@ -151,9 +151,7 @@ TEST(SignalTest, RunningQuality_t2) {
|
||||
|
||||
std::vector<double> signal = fetch_y_axis(acc);
|
||||
|
||||
#if (FPS != 60)
|
||||
#error "FPS must currently be 60, as highpass taps are pre-computed for that value"
|
||||
#endif
|
||||
double fps = 60.0;
|
||||
|
||||
// TODO: SQI: cehck input file
|
||||
// TODO: SQI: print debug values corr,idx, checkedSsf
|
||||
@@ -174,20 +172,20 @@ TEST(SignalTest, RunningQuality_t2) {
|
||||
//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;
|
||||
|
||||
npy_save("test2/ssf_t3_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