Browse Source

AP_Soaring: Use RC_Channels instead of hal.rcin

master
Michael du Breuil 7 years ago committed by Francisco Ferreira
parent
commit
b757354c88
  1. 2
      libraries/AP_Soaring/AP_Soaring.cpp

2
libraries/AP_Soaring/AP_Soaring.cpp

@ -331,5 +331,5 @@ bool SoaringController::is_active() const @@ -331,5 +331,5 @@ bool SoaringController::is_active() const
return true;
}
// active when above 1700
return hal.rcin->read(soar_active_ch-1) >= 1700;
return RC_Channels::get_radio_in(soar_active_ch-1) >= 1700;
}

Loading…
Cancel
Save