From ecfd621a011264d5a405194978035ecb24334843 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Tue, 15 May 2018 14:13:07 +1000 Subject: [PATCH] Cleanup boost control settings to disable PID options when using open loop --- reference/speeduino.ini | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/reference/speeduino.ini b/reference/speeduino.ini index 7de89441..3069f928 100644 --- a/reference/speeduino.ini +++ b/reference/speeduino.ini @@ -1522,19 +1522,20 @@ menuDialog = main dialog = boostSettings, "Boost Control" topicHelp = "http://speeduino.com/wiki/index.php/Boost_Control" field = "Boost Control Enabled", boostEnabled + field = "Boost control type", boostType field = "Boost output pin", boostPin, { boostEnabled } field = "Boost solenoid freq.", boostFreq, { boostEnabled } - field = "Valve minimum duty cycle", boostMinDuty, { boostEnabled } - field = "Valve maximum duty cycle", boostMaxDuty, { boostEnabled } + field = "Valve minimum duty cycle", boostMinDuty, { boostEnabled && boostType == 1 } + field = "Valve maximum duty cycle", boostMaxDuty, { boostEnabled && boostType == 1 } panel = boostCut field = "Closed Loop settings" - field = "Control mode", boostMode, { boostEnabled } - slider = "Sensitivity", boostSens, horizontal, { boostEnabled } - field = "Control interval", boostIntv, { boostEnabled } - field = "P", boostKP, { boostEnabled && boostMode } - field = "I", boostKI, { boostEnabled && boostMode} - field = "D", boostKD, { boostEnabled && boostMode} + field = "Control mode", boostMode, { boostEnabled && boostType == 1 } + slider = "Sensitivity", boostSens, horizontal, { boostEnabled && boostType == 1 } + field = "Control interval", boostIntv, { boostEnabled && boostType == 1 } + field = "P", boostKP, { boostEnabled && boostMode && boostType == 1 } + field = "I", boostKI, { boostEnabled && boostMode && boostType == 1 } + field = "D", boostKD, { boostEnabled && boostMode && boostType == 1 } dialog = vvtSettings, "VVT Control"