user configurable sample rate, true peak detection
commit14c90bf10b865a66b3f99df0cd2cbe4448d2e8c3
authorctzsnooze <chris.thompson@sydney.edu.au>
Mon, 13 Aug 2018 05:00:24 +0000 (13 15:00 +1000)
committerctzsnooze <chris.thompson@sydney.edu.au>
Sun, 19 Aug 2018 14:33:11 +0000 (20 00:33 +1000)
tree4c3a9acccaa54727d467904f057710fc53e4dd6c
parent3f001295f7a83d251147d80cb8fb38346c937a2a
user configurable sample rate, true peak detection

1. User can set sampling rate to suit expected range of frequencies:
- HIGH suits 4" or smaller and 6S 5"
- MEDIUM suits classic 5" 4S
- LOW is for 6" or greater
Limits automatically scaled:
HIGH : 133/166 to 1000Hz, MEDIUM : 89/111 to 666Hz, LOW : 67/83 to 500Hz
2. Bandpass entirely eliminated, not needed.
3. True peak detection method, favouring first peak to exceed 80% of maximum bin height; ignore or threshold values not required.
src/main/interface/settings.c
src/main/interface/settings.h
src/main/sensors/gyro.c
src/main/sensors/gyro.h
src/main/sensors/gyroanalyse.c