AP_ICEngine: check for valid RC input for ICE
This commit is contained in:
parent
890fc96d20
commit
96dd354131
@ -169,7 +169,7 @@ void AP_ICEngine::update(void)
|
||||
|
||||
uint16_t cvalue = 1500;
|
||||
RC_Channel *c = rc().channel(start_chan-1);
|
||||
if (c != nullptr) {
|
||||
if (c != nullptr && rc().has_valid_input()) {
|
||||
// get starter control channel
|
||||
cvalue = c->get_radio_in();
|
||||
|
||||
@ -357,7 +357,7 @@ bool AP_ICEngine::engine_control(float start_control, float cold_start, float he
|
||||
return true;
|
||||
}
|
||||
RC_Channel *c = rc().channel(start_chan-1);
|
||||
if (c != nullptr) {
|
||||
if (c != nullptr && rc().has_valid_input()) {
|
||||
// get starter control channel
|
||||
uint16_t cvalue = c->get_radio_in();
|
||||
if (cvalue >= start_chan_min_pwm && cvalue <= 1300) {
|
||||
|
Loading…
Reference in New Issue
Block a user