Move the receiver inter-frame measurements down into the protocol layer
commit79dd6b6bcc3087d3fec5e3b98adc4d4e020c498e
authorBruce Luckcuck <github@etracer.net>
Mon, 18 Nov 2019 15:42:12 +0000 (18 10:42 -0500)
committerBruce Luckcuck <github@etracer.net>
Tue, 19 Nov 2019 19:45:07 +0000 (19 14:45 -0500)
treea655c33cf1aa26d3dc63e0ff9687f493af2f76ea
parent881a25698002dd4f3bafcedbde52e5e0c0d016a1
Move the receiver inter-frame measurements down into the protocol layer
Adds accuracy to the frame rate measurements used to configure RC smoothing. Prevents looptime delays and jitter from affecting the calculations. Significantly improves the accuracy of the measurement in cases where CPU load is high.

Implemented so that each protocol can individually provide the functionality if appropriate. If a protocol doesn't support the more granular measurement then the system will fallback to the original measurement calculated in the RX task.
src/main/fc/tasks.c
src/main/rx/crsf.c
src/main/rx/rx.c
src/main/rx/rx.h
src/main/rx/sbus.c