Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PulseSensor mbed-rtos LSM9DS1_Library_cal
Diff: stepcounter.h
- Revision:
- 8:2d43385e7784
- Parent:
- 7:88d71c228407
--- a/stepcounter.h Wed Dec 01 00:20:32 2021 +0000
+++ b/stepcounter.h Thu Dec 02 00:58:37 2021 +0000
@@ -51,11 +51,7 @@
axis_info_t old_sample;
} slid_reg_t;
-extern filter_avg_t acc_data;
-extern axis_info_t acc_sample;
-extern peak_value_t acc_peak;
-extern slid_reg_t acc_slid;
-extern uint8_t step_cnt;
+
void filter_calculate(filter_avg_t *filter, axis_info_t *sample);
void peak_value_init(peak_value_t *peak);
@@ -63,5 +59,6 @@
char slid_update(slid_reg_t *slid, axis_info_t *cur_sample);
char is_most_active(peak_value_t *peak);
void detect_step(peak_value_t *peak, slid_reg_t *slid, axis_info_t *cur_sample);
+uint8_t get_step();
#endif
\ No newline at end of file