Enable WUE
This commit is contained in:
parent
05bb6483c8
commit
3c934962aa
|
@ -88,6 +88,13 @@ void command()
|
||||||
Serial.print(", ");
|
Serial.print(", ");
|
||||||
Serial.println(o2CalibrationTable[x]);
|
Serial.println(o2CalibrationTable[x]);
|
||||||
}
|
}
|
||||||
|
Serial.println("WUE");
|
||||||
|
for(int x=0; x<10; x++)
|
||||||
|
{
|
||||||
|
Serial.print(configPage2.wueBins[x]);
|
||||||
|
Serial.print(", ");
|
||||||
|
Serial.println(configPage1.wueValues[x]);
|
||||||
|
}
|
||||||
Serial.flush();
|
Serial.flush();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
byte correctionsTotal()
|
byte correctionsTotal()
|
||||||
{
|
{
|
||||||
int sumCorrections = 100;
|
int sumCorrections = 100;
|
||||||
//sumCorrections = div((sumCorrections * correctionWUE()), 100).quot;
|
sumCorrections = div((sumCorrections * correctionWUE()), 100).quot;
|
||||||
sumCorrections = div((sumCorrections * correctionASE()), 100).quot;
|
sumCorrections = div((sumCorrections * correctionASE()), 100).quot;
|
||||||
//sumCorrections = div((sumCorrections * correctionAccel()), 100).quot;
|
//sumCorrections = div((sumCorrections * correctionAccel()), 100).quot;
|
||||||
sumCorrections = div((sumCorrections * correctionFloodClear()), 100).quot;
|
sumCorrections = div((sumCorrections * correctionFloodClear()), 100).quot;
|
||||||
|
@ -13,7 +13,7 @@ byte correctionsTotal()
|
||||||
byte correctionWUE()
|
byte correctionWUE()
|
||||||
{
|
{
|
||||||
//Possibly reduce the frequency this runs at (Costs about 50 loops per second)
|
//Possibly reduce the frequency this runs at (Costs about 50 loops per second)
|
||||||
return 100 + table2D_getValue(WUETable, currentStatus.coolant);
|
return table2D_getValue(WUETable, currentStatus.coolant + CALIBRATION_TEMPERATURE_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
byte correctionASE()
|
byte correctionASE()
|
||||||
|
|
|
@ -93,6 +93,16 @@ void setup()
|
||||||
WUETable.xSize = 10;
|
WUETable.xSize = 10;
|
||||||
WUETable.values = configPage1.wueValues;
|
WUETable.values = configPage1.wueValues;
|
||||||
WUETable.axisX = configPage2.wueBins;
|
WUETable.axisX = configPage2.wueBins;
|
||||||
|
WUETable.axisX[0] = 0;
|
||||||
|
WUETable.axisX[1] = 11;
|
||||||
|
WUETable.axisX[2] = 22;
|
||||||
|
WUETable.axisX[3] = 33;
|
||||||
|
WUETable.axisX[4] = 44;
|
||||||
|
WUETable.axisX[5] = 56;
|
||||||
|
WUETable.axisX[6] = 67;
|
||||||
|
WUETable.axisX[7] = 78;
|
||||||
|
WUETable.axisX[8] = 94;
|
||||||
|
WUETable.axisX[9] = 111;
|
||||||
|
|
||||||
//Setup the calibration tables
|
//Setup the calibration tables
|
||||||
loadCalibration();
|
loadCalibration();
|
||||||
|
|
Loading…
Reference in New Issue