RC smoothing: improve rx frame rate detection, add rc_smoothing_info cli command
commite49c10b573a2e6c68c66624463fbf861410e7032
authorBruce Luckcuck <github@etracer.net>
Tue, 5 Jun 2018 03:30:41 +0000 (4 23:30 -0400)
committerBruce Luckcuck <github@etracer.net>
Tue, 5 Jun 2018 22:25:13 +0000 (5 18:25 -0400)
tree0d3a89f390b13149e6bb1fee3de5094251103908
parent95f8cfd8b894a462f8b45c123f0499b5a938acdd
RC smoothing: improve rx frame rate detection, add rc_smoothing_info cli command
Improved the rx frame rate detection/training by delaying calculation to avoid loop time jitter during flight controller initialization.

For auto cutoffs calculate a value appropriate for BIQUAD or PT1 depending on the configuration.

Added a new rc_smoothing_info cli command to display internal details about its operation.
src/main/fc/fc_rc.c
src/main/fc/fc_rc.h
src/main/fc/rc_controls.h
src/main/flight/pid.c
src/main/interface/cli.c