|
|
|
@ -37,8 +37,6 @@ void RCInput::init()
@@ -37,8 +37,6 @@ void RCInput::init()
|
|
|
|
|
#endif |
|
|
|
|
chMtxObjectInit(&rcin_mutex); |
|
|
|
|
_init = true; |
|
|
|
|
//timeout starts from the initialisation
|
|
|
|
|
_rcin_detect_timeout = AP_HAL::micros(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool RCInput::new_input() |
|
|
|
@ -186,11 +184,6 @@ void RCInput::_timer_tick(void)
@@ -186,11 +184,6 @@ void RCInput::_timer_tick(void)
|
|
|
|
|
} |
|
|
|
|
chMtxUnlock(&rcin_mutex); |
|
|
|
|
} |
|
|
|
|
//we reset if nothing detected for SIG_DETECT_TIMEOUT_US
|
|
|
|
|
if (AP_HAL::micros() - _rcin_detect_timeout > SIG_DETECT_TIMEOUT_US) { |
|
|
|
|
_rcin_detect_timeout = AP_HAL::micros(); |
|
|
|
|
sig_reader.invert(); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifdef HAL_RCINPUT_WITH_AP_RADIO |
|
|
|
|