AP_ICEngine: make it obvious that update_idle_gov does nothing if disabled

This commit is contained in:
Tom Pittenger 2021-01-27 15:19:48 -08:00 committed by Andrew Tridgell
parent f124cf0991
commit 8019cc160a

View File

@ -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