rc_update: only decode if RC input is stable (channel count and source)

This commit is contained in:
Daniel Agar
2020-12-01 09:40:24 -05:00
committed by GitHub
parent d654be761c
commit 85f3ab1960
2 changed files with 39 additions and 26 deletions
+1
View File
@@ -167,6 +167,7 @@ private:
hrt_abstime _last_rc_to_param_map_time = 0;
uint8_t _channel_count_previous{0};
uint8_t _input_source_previous{input_rc_s::RC_INPUT_SOURCE_UNKNOWN};
perf_counter_t _loop_perf; /**< loop performance counter */