Small fixes for the Spindle module.
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 29 Dec 2014 09:51:57 +0000 (11:51 +0200)
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>
Mon, 29 Dec 2014 09:57:18 +0000 (11:57 +0200)
commit5a9f7a2831d11fa64f920dbac66cde90420ce729
treea2a5c0ed28a2b374ae8d5b3d675eed95399612d0
parent5e412610889608c7650dbed3dea33448d833a462
Small fixes for the Spindle module.

- Now uses us_ticker_read(), leaving systick free for other uses.
- Sets lower priority for the pulse sensor interrupt.
- Added option for smoothing filter on the RPM readings, which
  helps PID if the readings are noisy.
src/modules/tools/spindle/Spindle.cpp
src/modules/tools/spindle/Spindle.h