From ddd32d333979e805c2486a21ac238c670908d05d Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Tue, 3 Apr 2018 19:18:34 -0700 Subject: [PATCH] AP_ICEngine: Use RC_Channels instead of hal.rcin --- libraries/AP_ICEngine/AP_ICEngine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_ICEngine/AP_ICEngine.cpp b/libraries/AP_ICEngine/AP_ICEngine.cpp index d707c61dc0..c004dd56de 100644 --- a/libraries/AP_ICEngine/AP_ICEngine.cpp +++ b/libraries/AP_ICEngine/AP_ICEngine.cpp @@ -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 } 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; }