fw-custom-example/generated/canned-tunes/Honda-OBD1-comparing-agains...

13 KiB

static void cannedinjector_battLagCorrBins() {
	static const float hardCodedinjector_battLagCorrBins[8] = {0.0, 6.0, 8.0, 9.92, 12.05, 13.15, 14.16, 16.0};
	copyArray(engineConfiguration->injectorSecondary.injector_battLagCorrBins, hardCodedinjector_battLagCorrBins);
}

static void cannedinjector_battLagCorr() {
	static const float hardCodedinjector_battLagCorr[8] = {3.37, 2.04, 1.53, 1.09, 0.62, 0.51, 0.47, 0.33};
	copyArray(engineConfiguration->injectorSecondary.injector_battLagCorr, hardCodedinjector_battLagCorr);
}

static void cannedmafDecodingBins() {
	static const float hardCodedmafDecodingBins[32] = {0.0, 0.78125, 1.3867188, 2.9101562, 4.2578125, 4.9804688, 2016.0, 2017.0, 2018.0, 2019.0, 2020.0, 2021.0, 2022.0, 2023.0, 2024.0, 2025.0, 2026.0, 2027.0, 2028.0, 2029.0, 2030.0, 2031.0, 2032.0, 2033.0, 2034.0, 2035.0, 2036.0, 2037.0, 2038.0, 2039.0, 2040.0, 2041.0};
	copyArray(config->mafDecodingBins, hardCodedmafDecodingBins);
}

static void cannedcltIdleCorr() {
	static const float hardCodedcltIdleCorr[16] = {1.5, 1.5, 1.3333334, 1.3333334, 1.3333334, 1.3333334, 1.3333334, 1.3333334, 1.3333334, 1.2333333, 1.1666666, 1.1, 1.0, 1.0, 1.0, 1.0};
	copyArray(config->cltIdleCorr, hardCodedcltIdleCorr);
}

static void cannedtractionControlSlipBins() {
	static const float hardCodedtractionControlSlipBins[6] = {0.8, 0.9, 0.95, 1.05, 1.1, 1.2};
	copyArray(engineConfiguration->tractionControlSlipBins, hardCodedtractionControlSlipBins);
}

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,	},
{29.000,	29.000,	29.000,	29.000,	29.000,	29.000,	29.000,	29.000,	},
{43.000,	43.000,	43.000,	43.000,	43.000,	43.000,	43.000,	43.000,	},
{57.000,	57.000,	57.000,	57.000,	57.000,	57.000,	57.000,	57.000,	},
{71.000,	71.000,	71.000,	71.000,	71.000,	71.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->boostTableOpenLoop, hardCodedboostTableOpenLoop);
}

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.400,	15.800,	16.600,	17.600,	24.900,	28.900,	32.800,	36.700,	37.700,	39.000,	39.000,	39.000,	39.000,	39.000,	39.000,	39.000,	},
{15.300,	15.600,	16.400,	17.300,	24.600,	28.500,	32.300,	36.200,	37.100,	38.400,	38.400,	38.400,	38.400,	38.400,	38.400,	38.400,	},
{17.000,	18.900,	16.700,	20.500,	24.300,	28.100,	31.800,	35.600,	36.500,	37.800,	37.800,	37.800,	37.800,	37.800,	37.800,	37.800,	},
{16.800,	18.700,	16.400,	20.200,	23.900,	27.700,	31.400,	35.100,	36.000,	37.200,	37.200,	37.200,	37.200,	37.200,	37.200,	37.200,	},
{16.600,	18.500,	16.100,	19.800,	23.400,	27.100,	30.700,	34.300,	35.100,	36.300,	36.300,	36.300,	36.300,	36.300,	36.300,	36.300,	},
{16.500,	18.300,	15.900,	19.500,	23.100,	26.700,	30.200,	33.800,	34.500,	35.700,	35.700,	35.700,	35.700,	35.700,	35.700,	35.700,	},
{16.400,	18.200,	15.700,	19.200,	22.700,	26.300,	29.800,	33.300,	33.900,	35.100,	35.100,	35.100,	35.100,	35.100,	35.100,	35.100,	},
{11.100,	12.800,	10.300,	13.700,	22.400,	25.900,	29.300,	32.800,	33.300,	34.500,	34.500,	34.500,	34.500,	34.500,	34.500,	34.500,	},
{9.000,	10.700,	8.100,	11.500,	22.000,	25.500,	28.900,	32.300,	34.500,	35.600,	35.600,	35.600,	33.200,	33.200,	33.200,	33.200,	},
{8.500,	10.200,	7.500,	10.800,	21.500,	24.900,	28.200,	31.500,	33.600,	34.700,	34.700,	34.700,	32.300,	32.300,	32.300,	32.300,	},
{5.800,	7.400,	4.700,	7.900,	21.200,	24.500,	27.700,	31.000,	33.000,	34.100,	34.100,	34.100,	31.700,	31.700,	31.700,	31.700,	},
{-2.300,	-0.700,	-3.500,	-0.300,	20.900,	24.100,	27.200,	30.400,	32.400,	33.500,	33.500,	33.500,	31.100,	31.100,	31.100,	31.100,	},
{-2.500,	-0.900,	-3.800,	-0.600,	20.500,	23.700,	26.800,	29.900,	31.900,	32.900,	32.900,	32.900,	30.500,	30.500,	30.500,	30.500,	},
{-2.500,	-0.900,	-3.800,	-0.700,	20.500,	23.600,	26.700,	29.800,	31.800,	32.800,	32.800,	32.800,	30.400,	30.400,	30.400,	30.400,	},
{-2.500,	-0.900,	-3.800,	-0.700,	20.500,	23.600,	26.700,	29.800,	31.800,	32.800,	32.800,	32.800,	30.400,	30.400,	30.400,	30.400,	},
{-2.500,	-0.900,	-3.800,	-0.700,	20.500,	23.600,	26.700,	29.800,	31.800,	32.800,	32.800,	32.800,	30.400,	30.400,	30.400,	30.400,	},
};
	copyTable(config->ignitionTable, hardCodedignitionTable);
}

static void cannedignBlends1_rpmBins() {
	static const float hardCodedignBlends1_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.ignBlends1_rpmBins, hardCodedignBlends1_rpmBins);
}

static void cannedignBlends2_rpmBins() {
	static const float hardCodedignBlends2_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.ignBlends2_rpmBins, hardCodedignBlends2_rpmBins);
}

static void cannedignBlends3_rpmBins() {
	static const float hardCodedignBlends3_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.ignBlends3_rpmBins, hardCodedignBlends3_rpmBins);
}

static void cannedignBlends4_rpmBins() {
	static const float hardCodedignBlends4_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.ignBlends4_rpmBins, hardCodedignBlends4_rpmBins);
}

static void cannedveBlends1_rpmBins() {
	static const float hardCodedveBlends1_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.veBlends1_rpmBins, hardCodedveBlends1_rpmBins);
}

static void cannedveBlends2_rpmBins() {
	static const float hardCodedveBlends2_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.veBlends2_rpmBins, hardCodedveBlends2_rpmBins);
}

static void cannedveBlends3_rpmBins() {
	static const float hardCodedveBlends3_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.veBlends3_rpmBins, hardCodedveBlends3_rpmBins);
}

static void cannedveBlends4_rpmBins() {
	static const float hardCodedveBlends4_rpmBins[8] = {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0, 6000.0, 7000.0};
	copyArray(engineConfiguration->boostClosedLoopBlends2.veBlends4_rpmBins, hardCodedveBlends4_rpmBins);
}

static void cannedveTable() {
	static const float hardCodedveTable[16][16] = {
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
{80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	80.000,	},
};
	copyTable(config->veTable, hardCodedveTable);
}

static void cannedlambdaTable() {
	static const float hardCodedlambdaTable[16][16] = {
{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.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.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.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.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.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.700,	14.700,	},
{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.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	13.500,	},
{13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	13.200,	},
{13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	13.100,	},
{12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	12.900,	},
{12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	12.600,	},
{12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	12.300,	},
{11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	11.800,	},
{11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	11.300,	},
{11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	11.000,	},
{10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	10.700,	},
};
	copyTable(config->lambdaTable, hardCodedlambdaTable);
}

static void cannedgppwm1_rpmBins() {
	static const float hardCodedgppwm1_rpmBins[8] = {0.0, 2000.0, 3000.0, 4000.0, 4500.0, 5000.0, 5500.0, 7000.0};
	copyArray(engineConfiguration->gppwm4.gppwm1_rpmBins, hardCodedgppwm1_rpmBins);
}

static void cannedgppwm1_table() {
	static const float hardCodedgppwm1_table[8][8] = {
{0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{0.000,	0.000,	0.000,	0.000,	100.000,	100.000,	100.000,	100.000,	},
{0.000,	0.000,	0.000,	0.000,	100.000,	100.000,	100.000,	100.000,	},
{0.000,	0.000,	0.000,	0.000,	100.000,	100.000,	100.000,	100.000,	},
{0.000,	0.000,	0.000,	0.000,	100.000,	100.000,	100.000,	100.000,	},
};
	copyTable(engineConfiguration->gppwm4.gppwm1_table, hardCodedgppwm1_table);
}

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);
}