Browse Source

AP_ICEngine: Use RC_Channels instead of hal.rcin

master
Michael du Breuil 7 years ago committed by Francisco Ferreira
parent
commit
ddd32d3339
  1. 4
      libraries/AP_ICEngine/AP_ICEngine.cpp

4
libraries/AP_ICEngine/AP_ICEngine.cpp

@ -126,7 +126,7 @@ void AP_ICEngine::update(void) @@ -126,7 +126,7 @@ void AP_ICEngine::update(void)
uint16_t cvalue = 1500;
if (start_chan != 0) {
// get starter control channel
cvalue = hal.rcin->read(start_chan-1);
cvalue = RC_Channels::get_radio_in(start_chan-1);
}
bool should_run = false;
@ -271,7 +271,7 @@ bool AP_ICEngine::engine_control(float start_control, float cold_start, float he @@ -271,7 +271,7 @@ bool AP_ICEngine::engine_control(float start_control, float cold_start, float he
}
if (start_chan != 0) {
// get starter control channel
if (hal.rcin->read(start_chan-1) <= 1300) {
if (RC_Channels::get_radio_in(start_chan-1) <= 1300) {
gcs().send_text(MAV_SEVERITY_INFO, "Engine: start control disabled");
return false;
}

Loading…
Cancel
Save