Basic fan control dialogs added

This commit is contained in:
Josh Stewart 2015-07-24 14:40:24 +10:00
parent 359288efb7
commit 4ea46c201c
1 changed files with 20 additions and 1 deletions

View File

@ -324,7 +324,7 @@ page = 6
unused63 = scalar, U08, 63, "RPM", 100.0, 0.0, 100, 25500, 0
;--------------------------------------------------
;Start idle control (Page 7
;Start idle and fan controls (Page 7)
;--------------------------------------------------
page = 7
iacCLValues = array, U08, 0, [10], "RPM", 1.0, 0.0, 100.0, 255, 0
@ -348,6 +348,17 @@ page = 7
iacStepHome = scalar, U08, 54, "Steps", 1.0, 0, 0, 255, 0
iacStepHyster= scalar, U08, 54, "C", 0.1, 0.0, 0.0, 25.5, 1
; Begin fan control vairables
fanInv = bits, U08, 55, [0:0], "No", "Yes"
fanEnable = bits, U08, 55, [1:1], "No", "Yes"
#if CELSIUS
fanSP = scalar, U08, 56, "°C", 1.0, -40, -40, 215.0, 0
fanHyster = scalar, U08, 57, "°C", 1.0, -40, -40, 215.0, 0
#else
fanSP = scalar, U08, 56, "°F", 1.0, -40, -40, 215.0, 0
fanHyster = scalar, U08, 57, "°F", 1.0, -40, -40, 215.0, 0
#endif
;-------------------------------------------------------------------------------
@ -359,6 +370,7 @@ page = 7
requiresPowerCycle = onetwo
requiresPowerCycle = injOpen
requiresPowerCycle = IgInv
requiresPowerCycle = fanInv
defaultValue = pinLayout, 1
defaultValue = TrigPattern, 0
@ -401,6 +413,7 @@ page = 7
subMenu = triggerSettings, "&Trigger Setup"
subMenu = OLED, "OLED Setup"
subMenu = airdensity_curve, "IAT Density"
subMenu = fanSettings, "Fan"
menu = "&Tuning"
subMenu = std_realtime, "&Realtime Display"
@ -525,6 +538,12 @@ page = 7
field = "PID Proportional Gain", egoKP, { egoType && (egoAlgorithm == 2) }
field = "PID Integral", egoKI, { egoType && (egoAlgorithm == 2) }
field = "PID Derivative", egoKD, { egoType && (egoAlgorithm == 2) }
dialog = fanSettings,"Fan Settings",7
field = "Fan Enabled", fanEnable
field = "Fan Output Inverted (see F1)", fanInv
field = "Fan temperature SP", fanSP
field = "Fan hysteresis", fanHyster
dialog = crankPW, "Cranking Pulsewidths (ms)"