Remove extra byte that shouldn't have been in one of the config pages

This commit is contained in:
Josh Stewart 2015-04-10 17:26:38 +10:00
parent 234612ad04
commit 13f4d9b131
4 changed files with 5 additions and 5 deletions

View File

@ -147,6 +147,7 @@ Uses a 2D enrichment table (WUETable) where the X axis is engine temp and the Y
*/
byte correctionsBatVoltage()
{
if (currentStatus.battery10 > (injectorVCorrectionTable.axisX[5])) { return injectorVCorrectionTable.values[injectorVCorrectionTable.xSize-1]; } //This prevents us doing the 2D lookup if the voltage is above maximum
return table2D_getValue(injectorVCorrectionTable, currentStatus.battery10);
}

View File

@ -221,11 +221,10 @@ struct config3 {
byte ego_sdelay; //Time in seconds after engine starts that closed loop becomes available
byte egoRPM; //RPM must be above this for closed loop to function
byte egoTPSMax; //TPS must be below this for closed loop to function
byte floodClear; //TPS value that triggers flood clear mode (No fuel whilst cranking)
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 voltageCorrectionBins[6]; //X axis bins for voltage correction tables
byte injVoltageCorrectionBins[6]; //Correction table for injector PW vs battery voltage
byte injVoltageCorrectionValues[6]; //Correction table for injector PW vs battery voltage
byte unused107;
byte unused108;
byte unused109;

View File

@ -252,8 +252,8 @@ page = 3
egoTPSMax = scalar, U08, 92, "%", 1, 0, 0, 120, 0
egoLoadMax = scalar, U08, 93, "%", 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
injBatRates = array, U08, 101, [6], "%", 1.0, 0.0, 0.00, 255.0, 0 ;Values for injector pulsewidth vs voltage
brvBins = array, U08, 95, [6], "V", 0.1, 0, 6, 24, 1 ; Bins for the battery reference voltage
injBatRates = array, U08, 101,[6], "%", 1, 0.0, 0.00, 255.0, 0 ;Values for injector pulsewidth vs voltage
;unused107 = scalar, U08, 107, "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

View File

@ -124,7 +124,7 @@ void setup()
dwellVCorrectionTable.axisX = configPage3.voltageCorrectionBins;
injectorVCorrectionTable.valueSize = SIZE_BYTE;
injectorVCorrectionTable.xSize = 6;
injectorVCorrectionTable.values = configPage3.injVoltageCorrectionBins;
injectorVCorrectionTable.values = configPage3.injVoltageCorrectionValues;
injectorVCorrectionTable.axisX = configPage3.voltageCorrectionBins;
//Setup the calibration tables