Browse Source

AP_ICEngine: make it obvious that update_idle_gov does nothing if disabled

zr-v5.1
Tom Pittenger 4 years ago committed by Andrew Tridgell
parent
commit
8019cc160a
  1. 3
      libraries/AP_ICEngine/AP_ICEngine.cpp

3
libraries/AP_ICEngine/AP_ICEngine.cpp

@ -383,6 +383,9 @@ bool AP_ICEngine::engine_control(float start_control, float cold_start, float he @@ -383,6 +383,9 @@ bool AP_ICEngine::engine_control(float start_control, float cold_start, float he
*/
void AP_ICEngine::update_idle_governor(int8_t &min_throttle)
{
if (!enable) {
return;
}
const int8_t min_throttle_base = min_throttle;
// Initialize idle point to min_throttle on the first run

Loading…
Cancel
Save