Add injector vs voltage compensation curve
This commit is contained in:
parent
eb0f928663
commit
fb86e5fca6
12
globals.h
12
globals.h
|
@ -123,7 +123,7 @@ struct config1 {
|
||||||
byte injOCfuel;
|
byte injOCfuel;
|
||||||
byte injPwmP;
|
byte injPwmP;
|
||||||
byte injPwmT;
|
byte injPwmT;
|
||||||
byte battFac; //Whether to compensate pulsewidth for battery voltage (ms/v)
|
byte unused113;
|
||||||
int rpmk; //2 bytes
|
int rpmk; //2 bytes
|
||||||
//36
|
//36
|
||||||
//config1 in ini
|
//config1 in ini
|
||||||
|
@ -223,6 +223,16 @@ struct config3 {
|
||||||
byte egoLoadMax; //Load (TPS or MAP) must be below this for closed loop to function
|
byte egoLoadMax; //Load (TPS or MAP) must be below this for closed loop to function
|
||||||
byte egoLoadMin; //Load (TPS or MAP) must be above this for closed loop to function
|
byte egoLoadMin; //Load (TPS or MAP) must be above this for closed loop to function
|
||||||
byte dwellCorrectionBins[6]; //Correction table for dwell vs battery voltage
|
byte dwellCorrectionBins[6]; //Correction table for dwell vs battery voltage
|
||||||
|
byte injVoltageCorrectionBins[6]; //Correction table for injector PW vs battery voltage
|
||||||
|
byte unused107;
|
||||||
|
byte unused108;
|
||||||
|
byte unused109;
|
||||||
|
byte unused110;
|
||||||
|
byte unused111;
|
||||||
|
byte unused112;
|
||||||
|
byte unused113;
|
||||||
|
byte unused114;
|
||||||
|
byte unused115;
|
||||||
byte unused116;
|
byte unused116;
|
||||||
byte unused117;
|
byte unused117;
|
||||||
byte unused118;
|
byte unused118;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
<msq xmlns="http://www.msefi.com/:msq">
|
<msq xmlns="http://www.msefi.com/:msq">
|
||||||
<bibliography author="TunerStudio MS 2.6.14 - EFI Analytics, Inc." tuneComment=" " writeDate="Fri Mar 20 15:08:21 EST 2015"/>
|
<bibliography author="TunerStudio MS 2.6.14 - EFI Analytics, Inc." tuneComment=" " writeDate="Sat Mar 21 10:40:40 EST 2015"/>
|
||||||
<versionInfo fileFormat="4.0" firmwareInfo="Bowling & Grippo MS1 Base Code 20" nPages="3" signature="20"/>
|
<versionInfo fileFormat="4.0" firmwareInfo="" nPages="3" signature="20"/>
|
||||||
<page>
|
<page>
|
||||||
<pcVariable name="tsCanId">"0"</pcVariable>
|
<pcVariable name="tsCanId">"0"</pcVariable>
|
||||||
<pcVariable cols="1" digits="1" name="wueAfrTargetOffset" rows="10" units=":1">
|
<pcVariable cols="1" digits="1" name="wueAfrTargetOffset" rows="10" units=":1">
|
||||||
|
@ -112,7 +112,6 @@
|
||||||
<constant digits="0" name="injOCfuel" units="ms">0.0</constant>
|
<constant digits="0" name="injOCfuel" units="ms">0.0</constant>
|
||||||
<constant digits="0" name="injPwmP" units="%">0.0</constant>
|
<constant digits="0" name="injPwmP" units="%">0.0</constant>
|
||||||
<constant digits="1" name="injPwmT" units="ms">0.0</constant>
|
<constant digits="1" name="injPwmT" units="ms">0.0</constant>
|
||||||
<constant digits="2" name="battFac" units="ms/v">0.0</constant>
|
|
||||||
<constant digits="0" name="rpmk">3000.0</constant>
|
<constant digits="0" name="rpmk">3000.0</constant>
|
||||||
<constant name="mapType">"250 kPa"</constant>
|
<constant name="mapType">"250 kPa"</constant>
|
||||||
<constant name="twoStroke">"Four-stroke"</constant>
|
<constant name="twoStroke">"Four-stroke"</constant>
|
||||||
|
@ -273,11 +272,19 @@
|
||||||
<constant digits="0" name="egoLoadMin" units="%">20.0</constant>
|
<constant digits="0" name="egoLoadMin" units="%">20.0</constant>
|
||||||
<constant cols="1" digits="0" name="brvBins" rows="6" units="V">
|
<constant cols="1" digits="0" name="brvBins" rows="6" units="V">
|
||||||
6.0
|
6.0
|
||||||
8.0
|
9.0
|
||||||
10.0
|
12.0
|
||||||
13.0
|
14.0
|
||||||
15.0
|
18.0
|
||||||
19.0
|
21.0
|
||||||
|
</constant>
|
||||||
|
<constant cols="1" digits="0" name="injBatRates" rows="6" units="%">
|
||||||
|
221.0
|
||||||
|
151.0
|
||||||
|
107.0
|
||||||
|
100.0
|
||||||
|
95.0
|
||||||
|
92.0
|
||||||
</constant>
|
</constant>
|
||||||
</page>
|
</page>
|
||||||
<settings Comment="These setting are only used if this msq is opened without a project.">
|
<settings Comment="These setting are only used if this msq is opened without a project.">
|
||||||
|
|
|
@ -119,7 +119,7 @@ page = 1
|
||||||
injOCfuel = scalar, U08, 110, "ms", 0.1, 0.0, 0.0, 0.0, 0
|
injOCfuel = scalar, U08, 110, "ms", 0.1, 0.0, 0.0, 0.0, 0
|
||||||
injPwmP = scalar, U08, 111, "%", 1.0, 0.0, 0.0, 100.0, 0
|
injPwmP = scalar, U08, 111, "%", 1.0, 0.0, 0.0, 100.0, 0
|
||||||
injPwmT = scalar, U08, 112, "ms", 0.1, 0.0, 0.0, 25.5, 1
|
injPwmT = scalar, U08, 112, "ms", 0.1, 0.0, 0.0, 25.5, 1
|
||||||
battFac = scalar, U08, 113, "ms/v",0.0166667, 0.0, 0.0, 1.0, 2
|
unused113 = scalar, U08, 113, "ms/v",0.0166667, 0.0, 0.0, 1.0, 2
|
||||||
rpmk = scalar, U16, 114, "", 1.0, 0.0
|
rpmk = scalar, U16, 114, "", 1.0, 0.0
|
||||||
|
|
||||||
; Config1
|
; Config1
|
||||||
|
@ -252,12 +252,7 @@ page = 3
|
||||||
egoLoadMax = scalar, U08, 93, "%", 1, 0, 0, 120, 0
|
egoLoadMax = scalar, U08, 93, "%", 1, 0, 0, 120, 0
|
||||||
egoLoadMin = scalar, U08, 94, "%", 1, 0, 0, 120, 0
|
egoLoadMin = scalar, U08, 94, "%", 1, 0, 0, 120, 0
|
||||||
brvBins = array, U08, 95, [6], "V", 1.0, 0, 6, 24, 0 ; Bins for the battery reference voltage
|
brvBins = array, U08, 95, [6], "V", 1.0, 0, 6, 24, 0 ; Bins for the battery reference voltage
|
||||||
;unused101 = scalar, U08, 101, "none", 0, 0, 0, 0, 0
|
injBatRates = array, U08, 101, [6], "%", 1.0, 0.0, 0.00, 255.0, 0 ;Values for injector pulsewidth vs voltage
|
||||||
;unused102 = scalar, U08, 102, "none", 0, 0, 0, 0, 0
|
|
||||||
;unused103 = scalar, U08, 103, "none", 0, 0, 0, 0, 0
|
|
||||||
;unused104 = scalar, U08, 104, "none", 0, 0, 0, 0, 0
|
|
||||||
;unused105 = scalar, U08, 105, "none", 0, 0, 0, 0, 0
|
|
||||||
;unused106 = scalar, U08, 106, "none", 0, 0, 0, 0, 0
|
|
||||||
;unused107 = scalar, U08, 107, "none", 0, 0, 0, 0, 0
|
;unused107 = scalar, U08, 107, "none", 0, 0, 0, 0, 0
|
||||||
;unused108 = scalar, U08, 108, "none", 0, 0, 0, 0, 0
|
;unused108 = scalar, U08, 108, "none", 0, 0, 0, 0, 0
|
||||||
; unused109 = scalar, U08, 109, "none", 0, 0, 0, 0, 0
|
; unused109 = scalar, U08, 109, "none", 0, 0, 0, 0, 0
|
||||||
|
@ -410,7 +405,7 @@ page = 3
|
||||||
|
|
||||||
dialog = injChars, "Injector Characteristics"
|
dialog = injChars, "Injector Characteristics"
|
||||||
field = "Injector Open Time", injOpen
|
field = "Injector Open Time", injOpen
|
||||||
field = "Battery Voltage Correction", battFac
|
panel = injector_voltage_curve
|
||||||
|
|
||||||
dialog = egoControl, ""
|
dialog = egoControl, ""
|
||||||
field = "Sensor Type", egoType
|
field = "Sensor Type", egoType
|
||||||
|
@ -630,12 +625,21 @@ help = helpEnrichments, "Enrichments Help"
|
||||||
|
|
||||||
; Correction curve for dwell vs battery voltage
|
; Correction curve for dwell vs battery voltage
|
||||||
curve = dwell_correction_curve, "Dwell voltage correction"
|
curve = dwell_correction_curve, "Dwell voltage correction"
|
||||||
columnLabel = "Voltage", "Dwell %"
|
columnLabel = "Voltage", "Dwell"
|
||||||
xAxis = 6, 22, 6
|
xAxis = 6, 22, 6
|
||||||
yAxis = 0, 255, 6
|
yAxis = 0, 255, 6
|
||||||
xBins = brvBins, batteryVoltage
|
xBins = brvBins, batteryVoltage
|
||||||
yBins = dwellRates
|
yBins = dwellRates
|
||||||
|
|
||||||
|
; Correction curve for injectors vs battery voltage
|
||||||
|
curve = injector_voltage_curve, "Injector voltage correction"
|
||||||
|
columnLabel = "Voltage", "%"
|
||||||
|
xAxis = 6, 22, 6
|
||||||
|
yAxis = 0, 255, 6
|
||||||
|
xBins = brvBins, batteryVoltage
|
||||||
|
yBins = injBatRates
|
||||||
|
|
||||||
|
|
||||||
[TableEditor]
|
[TableEditor]
|
||||||
; table_id, map3d_id, "title", page
|
; table_id, map3d_id, "title", page
|
||||||
table = veTable1Tbl, veTable1Map, "VE Table", 1
|
table = veTable1Tbl, veTable1Map, "VE Table", 1
|
||||||
|
|
Loading…
Reference in New Issue