Skip to content

jeffmer/step-count

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple step counter test

Running

Ensure Espruino is installed at the same level as step-count, as this code expects to use the step counter code from Espruino itself.

Type make && ./main to run and execute the file.

Total difference in steps between expected and calculated is shown.

  • expected = what we expect
  • orig = step count based on the most trivial step counter

Type make && ./main --bruteforce to run a brute-force check for all possible values using the offline data from data. You can then feed these back into stepcount.c

Graphs

With gnuplot installed you can run gnuplot -p gnuplot.plot to plot graphs of acceleration vs step count/theshold data for debugging.

To compile, run and display the most recent graphs, you can do pkill gnuplot;make clean;make && ./main && gnuplot -p gnuplot.plot

About

Simple step counter test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 90.8%
  • Gnuplot 9.0%
  • Makefile 0.2%