Prepare configurations for SW knock detection (#2046)
* Prepare configurations - Configurations needed for base noise - TS usability for base noise definition * Update rusefi_config.txt wrong data ype used for base noise
This commit is contained in:
parent
8ce7a984e4
commit
adf0a97ffc
|
@ -1455,8 +1455,10 @@ uint8_t[4] unusedsw;;"units", 1, 0, -20, 100, 0
|
||||||
|
|
||||||
pin_output_mode_e[TCU_SOLENOID_COUNT iterate] tcu_solenoid_mode;
|
pin_output_mode_e[TCU_SOLENOID_COUNT iterate] tcu_solenoid_mode;
|
||||||
|
|
||||||
|
int8_t[IGN_RPM_COUNT] knockBaseNoise;;"dB", 1.0, 0, -30.0, 0, 2
|
||||||
|
|
||||||
! just a reminder that 'int' and 'float' are 4 bytes each
|
! just a reminder that 'int' and 'float' are 4 bytes each
|
||||||
int[369] mainUnusedEnd;;"units", 1, 0, -20, 100, 0
|
int[365] mainUnusedEnd;;"units", 1, 0, -20, 100, 0
|
||||||
|
|
||||||
! end of engine_configuration_s
|
! end of engine_configuration_s
|
||||||
end_struct
|
end_struct
|
||||||
|
|
|
@ -540,6 +540,14 @@ enable2ndByteCanID = false
|
||||||
yAxis = 0, 8, 10
|
yAxis = 0, 8, 10
|
||||||
xBins = knockNoiseRpmBins, RPMValue
|
xBins = knockNoiseRpmBins, RPMValue
|
||||||
yBins = knockNoise
|
yBins = knockNoise
|
||||||
|
gauge = RPMGauge
|
||||||
|
|
||||||
|
curve = swKnockThresholdCurve, "Engine knock threshold RPM based"
|
||||||
|
columnLabel = "RPM", "Threshold dB"
|
||||||
|
xAxis = 0, 8000, 10
|
||||||
|
yAxis = -30, 0, 10
|
||||||
|
xBins = ignitionRpmBins, RPMValue
|
||||||
|
yBins = knockBaseNoise
|
||||||
gauge = RPMGauge
|
gauge = RPMGauge
|
||||||
|
|
||||||
curve = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
|
curve = narrowToWideOxygenCurve, "Narrow to Wideband approximation"
|
||||||
|
@ -2554,7 +2562,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
||||||
field = "Pin mode", malfunctionIndicatorPinMode
|
field = "Pin mode", malfunctionIndicatorPinMode
|
||||||
field = "Warning Period", warningPeriod
|
field = "Warning Period", warningPeriod
|
||||||
|
|
||||||
dialog = softwareKnock, "Software Knock"
|
dialog = softwareKnockCfg, "Configuration"
|
||||||
field = "Enable", enableSoftwareKnock
|
field = "Enable", enableSoftwareKnock
|
||||||
field = "Knock filter frequency", knockBandCustom, {enableSoftwareKnock}
|
field = "Knock filter frequency", knockBandCustom, {enableSoftwareKnock}
|
||||||
field = ""
|
field = ""
|
||||||
|
@ -2572,6 +2580,10 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@\x00\x31\x00\x00"
|
||||||
field = "Cylinder 11", knockBankCyl11, {enableSoftwareKnock && cylindersCount >= 11}
|
field = "Cylinder 11", knockBankCyl11, {enableSoftwareKnock && cylindersCount >= 11}
|
||||||
field = "Cylinder 12", knockBankCyl12, {enableSoftwareKnock && cylindersCount >= 12}
|
field = "Cylinder 12", knockBankCyl12, {enableSoftwareKnock && cylindersCount >= 12}
|
||||||
|
|
||||||
|
dialog = softwareKnock, "Software Knock", border
|
||||||
|
panel = softwareKnockCfg, West
|
||||||
|
panel = swKnockThresholdCurve, Center
|
||||||
|
|
||||||
; Engine->hip9011 Settings
|
; Engine->hip9011 Settings
|
||||||
dialog = hipFunction, "HIP9011 Settings (knock decoder)"
|
dialog = hipFunction, "HIP9011 Settings (knock decoder)"
|
||||||
field = "Enabled", isHip9011Enabled
|
field = "Enabled", isHip9011Enabled
|
||||||
|
|
Loading…
Reference in New Issue