• That's great! It's up to you - I guess I'd be inclined just to keep the two repos separate - I would imagine the test data in each case might not always have that much in common (no need to have HRM data if you only want to test out step counting and so on) although it sounds like in your case you'll be gathering both at the same time.

    ... also the way you'll want to compare algorithms for step counts and HRM is probably different too.

    We can't easily run the binary algorithm 'offline' so it might be worth logging the Bangle's reported HRM as well so you can test. One thing to note is the binary algo 'windows' the data and runs a filter over it, so it can't report instantaneous beat data - which would be really nice for heart rate variability values.

    Realistically the important thing for integration is that the algorithms themselves are normal, self-contained C files like https://github.com/espruino/Espruino/blob/master/libs/misc/heartrate.c that implement this API: https://github.com/espruino/Espruino/blob/master/libs/misc/heartrate.h

    So hrm_new/etc

    Same for step counting and https://github.com/espruino/Espruino/blob/master/libs/misc/stepcount.c

    I'm sure you know this already, but getting good algorithms is really all about getting good test data. For step counting for a while we were using data gathered from just one person and we did a great job of step counting for them - it just sucked for most other people :)

About

Avatar for Gordon @Gordon started