16 KiB
16 KiB
static void cannedtpsTpsAccelTable() {
static const float hardCodedtpsTpsAccelTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{3.459, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{6.282, 2.880, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{11.927, 4.896, 2.500, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.515, 6.624, 4.250, 2.500, 0.000, 0.000, 0.000, 0.000, },
{16.589, 8.064, 5.750, 4.250, 2.500, 0.000, 0.000, 0.000, },
{18.144, 9.216, 7.000, 5.750, 4.250, 5.000, 0.000, 0.000, },
{19.181, 10.080, 8.000, 7.000, 5.750, 8.500, 5.000, 0.000, },
};
copyTable(config->tpsTpsAccelTable, hardCodedtpsTpsAccelTable);
}
static void cannedboostTableOpenLoop() {
static const float hardCodedboostTableOpenLoop[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{42.000, 42.000, 42.000, 42.000, 42.000, 42.000, 42.000, 42.000, },
{58.000, 58.000, 58.000, 58.000, 58.000, 58.000, 58.000, 58.000, },
{72.000, 72.000, 72.000, 72.000, 72.000, 72.000, 72.000, 72.000, },
{86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, },
{100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, },
};
copyTable(config->boostTableOpenLoop, hardCodedboostTableOpenLoop);
}
static void cannedboostTableClosedLoop() {
static const float hardCodedboostTableClosedLoop[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, 28.000, },
{42.000, 42.000, 42.000, 42.000, 42.000, 42.000, 42.000, 42.000, },
{58.000, 58.000, 58.000, 58.000, 58.000, 58.000, 58.000, 58.000, },
{72.000, 72.000, 72.000, 72.000, 72.000, 72.000, 72.000, 72.000, },
{86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, },
{100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, },
};
copyTable(config->boostTableClosedLoop, hardCodedboostTableClosedLoop);
}
static void cannedscriptTable4() {
static const float hardCodedscriptTable4[8][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->scriptTable4, hardCodedscriptTable4);
}
static void cannedignitionTable() {
static const float hardCodedignitionTable[16][16] = {
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.600, 32.300, 35.000, 37.100, 37.900, 38.400, 39.000, 39.900, 40.100, },
{15.000, 15.000, 15.000, 15.000, 21.800, 23.600, 26.900, 29.700, 32.100, 34.500, 36.600, 37.400, 38.100, 38.600, 39.500, 39.800, },
{15.000, 15.000, 15.000, 18.000, 21.800, 23.600, 26.900, 29.600, 31.800, 34.100, 36.100, 36.600, 37.400, 38.000, 39.000, 39.400, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.800, 28.400, 30.400, 32.400, 34.300, 34.800, 35.600, 36.200, 37.200, 38.200, },
{15.000, 15.000, 15.000, 19.000, 20.800, 22.600, 25.600, 28.100, 30.000, 31.800, 33.600, 34.100, 35.000, 35.500, 36.900, 37.900, },
{15.000, 15.000, 16.000, 18.600, 20.200, 21.700, 23.400, 24.600, 26.800, 29.100, 31.300, 32.200, 33.400, 34.100, 35.200, 36.400, },
{14.800, 14.900, 16.100, 18.200, 19.400, 20.300, 21.700, 22.600, 24.700, 27.000, 29.200, 30.100, 31.400, 32.100, 33.300, 34.500, },
{13.800, 14.300, 15.200, 16.800, 18.300, 19.600, 20.700, 21.200, 23.300, 25.500, 27.700, 28.600, 30.100, 30.800, 32.100, 33.300, },
{13.600, 14.000, 14.500, 15.100, 16.800, 18.400, 19.400, 19.900, 21.900, 24.100, 26.300, 27.200, 28.800, 29.500, 30.900, 32.100, },
{13.500, 14.000, 14.300, 13.000, 14.900, 16.800, 18.000, 18.700, 20.600, 22.900, 23.700, 23.400, 23.200, 23.000, 22.800, 22.300, },
{12.800, 13.400, 13.600, 12.400, 14.300, 16.200, 17.400, 18.000, 19.900, 20.100, 20.900, 20.600, 20.400, 20.100, 19.900, 19.300, },
{11.200, 12.200, 12.400, 11.000, 12.900, 14.800, 15.900, 16.400, 18.300, 18.400, 19.200, 18.900, 18.500, 18.100, 17.800, 17.100, },
{9.100, 9.600, 10.400, 10.000, 12.000, 13.900, 14.900, 15.400, 17.300, 17.400, 18.100, 17.800, 17.400, 16.900, 16.600, 15.900, },
{4.700, 6.100, 7.400, 9.000, 11.000, 12.900, 13.900, 14.300, 16.200, 16.300, 17.000, 16.700, 16.200, 15.700, 15.300, 14.700, },
{2.200, 3.800, 4.800, 7.800, 9.800, 11.700, 12.600, 13.000, 14.800, 14.800, 15.600, 15.200, 14.700, 14.100, 13.700, 13.100, },
{0.300, 1.900, 2.900, 5.900, 7.900, 9.800, 10.700, 11.000, 12.700, 12.700, 13.600, 13.200, 12.600, 12.000, 11.600, 10.900, },
};
copyTable(config->ignitionTable, hardCodedignitionTable);
}
static void cannedignitionIatCorrTable() {
static const float hardCodedignitionIatCorrTable[8][8] = {
{4.000, 4.000, 4.000, 4.000, 4.000, 4.000, 4.000, 4.000, },
{2.900, 2.900, 2.900, 2.900, 2.900, 2.900, 2.900, 2.900, },
{0.700, 0.700, 0.700, 0.700, 0.700, 0.700, 0.700, 0.700, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{-0.600, -0.600, -0.600, -0.600, -0.600, -0.600, -0.600, -0.600, },
{-3.400, -3.400, -3.400, -3.400, -3.400, -3.400, -3.400, -3.400, },
{-4.000, -4.000, -4.000, -4.000, -4.000, -4.000, -4.000, -4.000, },
{-6.000, -6.000, -6.000, -6.000, -6.000, -6.000, -6.000, -6.000, },
};
copyTable(config->ignitionIatCorrTable, hardCodedignitionIatCorrTable);
}
static void cannedveTable() {
static const float hardCodedveTable[16][16] = {
{43.000, 41.700, 40.000, 32.000, 28.100, 27.200, 28.900, 24.900, 26.100, 27.400, 28.700, 29.900, 31.200, 32.500, 35.300, 36.800, },
{42.500, 40.800, 39.800, 37.100, 36.300, 36.800, 37.200, 37.900, 41.400, 42.700, 44.000, 45.400, 46.700, 48.000, 49.800, 51.100, },
{43.000, 41.200, 40.900, 41.600, 44.400, 45.800, 46.500, 47.800, 49.100, 50.400, 51.700, 53.100, 54.400, 55.700, 57.000, 58.300, },
{43.400, 44.000, 44.100, 47.400, 49.100, 50.800, 51.100, 51.900, 53.500, 54.600, 55.700, 56.800, 57.900, 59.000, 60.100, 61.200, },
{47.300, 47.600, 49.900, 51.500, 53.600, 53.700, 53.800, 54.900, 55.900, 57.000, 58.300, 59.100, 60.200, 61.300, 62.300, 63.400, },
{57.400, 55.400, 55.200, 55.400, 56.800, 57.800, 56.900, 55.700, 57.600, 58.600, 58.200, 60.100, 62.100, 64.100, 66.000, 68.000, },
{57.700, 58.600, 59.200, 58.500, 60.100, 60.300, 59.100, 58.800, 57.800, 58.800, 56.800, 59.700, 62.600, 65.500, 68.300, 71.200, },
{60.100, 62.100, 62.100, 60.900, 62.200, 62.000, 61.200, 61.600, 62.000, 62.500, 63.100, 63.600, 64.100, 66.700, 69.400, 72.100, },
{71.200, 66.000, 63.000, 62.800, 63.700, 63.400, 64.000, 64.700, 65.000, 65.500, 65.900, 66.200, 66.500, 68.800, 71.100, 73.400, },
{73.300, 66.900, 63.100, 64.500, 65.900, 65.900, 66.200, 65.300, 65.700, 66.000, 66.200, 66.500, 66.700, 68.900, 71.000, 73.200, },
{76.900, 68.500, 65.200, 64.400, 66.600, 67.100, 67.400, 66.500, 66.300, 66.100, 66.200, 68.400, 70.900, 73.200, 75.700, 78.300, },
{78.700, 68.300, 65.800, 63.200, 66.000, 67.300, 68.000, 67.000, 67.200, 67.500, 69.500, 71.600, 73.700, 75.600, 77.600, 79.700, },
{78.600, 68.800, 66.700, 64.600, 66.400, 66.900, 68.700, 69.500, 70.300, 71.100, 71.900, 72.700, 74.900, 76.900, 79.000, 81.100, },
{78.500, 69.300, 67.600, 66.000, 66.800, 66.500, 69.400, 70.300, 71.200, 72.000, 72.900, 73.800, 76.000, 78.200, 80.400, 82.600, },
{78.400, 69.700, 68.500, 67.300, 67.200, 66.000, 70.000, 71.000, 71.900, 72.900, 73.800, 74.800, 77.200, 79.400, 81.700, 84.000, },
{78.300, 70.200, 69.400, 68.700, 67.600, 65.600, 70.700, 71.700, 72.800, 73.800, 74.900, 75.900, 78.300, 80.700, 83.100, 85.400, },
};
copyTable(config->veTable, hardCodedveTable);
}
static void cannedmapEstimateTable() {
static const float hardCodedmapEstimateTable[16][16] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->mapEstimateTable, hardCodedmapEstimateTable);
}
static void cannedinjectionPhase() {
static const float hardCodedinjectionPhase[16][16] = {
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
{-246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -246.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, -330.000, },
};
copyTable(config->injectionPhase, hardCodedinjectionPhase);
}
static void cannedpedalToTpsTable() {
static const float hardCodedpedalToTpsTable[8][8] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{4.000, 4.000, 4.000, 4.000, 6.000, 7.000, 10.000, 10.000, },
{6.000, 8.000, 8.000, 8.000, 12.000, 14.000, 15.000, 15.000, },
{10.000, 10.000, 10.000, 12.000, 18.000, 20.000, 20.000, 20.000, },
{18.000, 18.000, 18.000, 20.000, 30.000, 33.000, 35.000, 35.000, },
{40.000, 40.000, 40.000, 50.000, 60.000, 65.000, 71.000, 71.000, },
{86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, 86.000, },
{100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, 100.000, },
};
copyTable(config->pedalToTpsTable, hardCodedpedalToTpsTable);
}
static void cannedlambdaTable() {
static const float hardCodedlambdaTable[16][16] = {
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.200, 14.200, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.200, 14.000, 14.000, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.000, 14.000, },
{14.000, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.000, 14.000, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.000, 14.000, },
{14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.200, 14.000, 14.000, },
{14.500, 14.500, 14.500, 14.500, 14.500, 14.500, 14.500, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.000, 14.000, 14.000, },
{14.500, 14.500, 14.500, 14.500, 14.500, 14.500, 14.500, 14.700, 14.700, 14.700, 14.700, 14.700, 14.700, 14.000, 14.000, 14.000, },
{14.200, 14.200, 14.200, 14.300, 14.300, 14.300, 14.300, 14.300, 14.700, 14.700, 14.700, 14.700, 14.700, 14.300, 14.300, 14.300, },
{14.200, 14.200, 14.200, 14.200, 14.200, 14.200, 14.200, 14.200, 14.400, 14.400, 14.400, 14.400, 14.400, 14.200, 14.200, 14.200, },
{14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, 14.000, },
{13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, 13.900, },
};
copyTable(config->lambdaTable, hardCodedlambdaTable);
}
static void cannedtcuSolenoidTable() {
static const float hardCodedtcuSolenoidTable[6][10] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(config->tcuSolenoidTable, hardCodedtcuSolenoidTable);
}
static void cannedpostCrankingFactor() {
static const float hardCodedpostCrankingFactor[6][6] = {
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
{0.000, 0.000, 0.000, 0.000, 0.000, 0.000, },
};
copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}