MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / pulse_input_enable

Method pulse_input_enable

libraries/AP_HAL_ChibiOS/RCInput.cpp:65–73  ·  view source on GitHub ↗

enable or disable pulse input for RC input. This is used to reduce load when we are decoding R/C via a UART */

Source from the content-addressed store, hash-verified

63 load when we are decoding R/C via a UART
64*/
65void RCInput::pulse_input_enable(bool enable)
66{
67 pulse_input_enabled = enable;
68#if HAL_USE_ICU == TRUE || HAL_USE_EICU == TRUE
69 if (!enable) {
70 sig_reader.disable();
71 }
72#endif
73}
74
75bool RCInput::new_input()
76{

Callers 1

process_byteMethod · 0.45

Calls 1

disableMethod · 0.45

Tested by

no test coverage detected