From 6cfa01f0ec2453eba652ba644df4723b4b74c893 Mon Sep 17 00:00:00 2001 From: David Madl Date: Wed, 20 May 2026 01:03:33 +0200 Subject: [PATCH] docs --- pasada-lib/include/step_detector.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pasada-lib/include/step_detector.h b/pasada-lib/include/step_detector.h index d27c23e..b8999e3 100644 --- a/pasada-lib/include/step_detector.h +++ b/pasada-lib/include/step_detector.h @@ -54,8 +54,15 @@ protected: double fps; public: + /** + * @param fps Initial guess for sampling rate - this is recomputed internally after the first 100 samples + * @param listener Listener to send step events to + * @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) */ void filter(double ts, std::vector values); + /** filter using scalar accel samples in \vec{e_g} direction */ void filter_a(double s1); std::vector getBufSsd(); std::vector getBufSqi();