rusefi/simulator/generated/canned-tunes/M52-comparing-against-curre...

12 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,	},
{4.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{6.800,	4.000,	0.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{9.200,	6.800,	4.000,	0.000,	0.000,	0.000,	0.000,	0.000,	},
{11.200,	9.200,	6.800,	4.000,	0.000,	0.000,	0.000,	0.000,	},
{12.800,	11.200,	9.200,	6.800,	4.000,	0.000,	0.000,	0.000,	},
{14.000,	12.800,	11.200,	9.200,	6.800,	4.000,	0.000,	0.000,	},
{14.800,	14.000,	12.800,	11.200,	9.200,	6.800,	4.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,	},
{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] = {
{10.000,	5.000,	-5.000,	0.000,	2.100,	2.900,	-20.000,	-20.000,	-20.000,	-20.000,	-20.000,	-20.000,	0.200,	20.600,	41.000,	41.000,	},
{10.000,	5.000,	-5.000,	0.000,	2.100,	2.900,	-20.000,	-20.000,	-20.000,	-20.000,	-20.000,	-20.000,	0.200,	20.600,	41.000,	41.000,	},
{8.000,	14.000,	22.100,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	},
{8.000,	14.000,	22.100,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	14.000,	22.100,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	13.900,	22.000,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	13.800,	21.900,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	13.800,	21.900,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	13.700,	21.900,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{8.000,	13.600,	21.800,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	40.000,	40.000,	},
{10.700,	13.500,	21.700,	36.200,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	37.000,	39.000,	39.000,	},
{15.900,	13.400,	21.700,	27.200,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	29.000,	29.000,	},
{15.400,	12.800,	21.300,	27.200,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	28.000,	},
{15.000,	12.300,	20.300,	25.300,	26.000,	26.000,	26.000,	26.000,	26.000,	26.000,	26.400,	26.800,	27.000,	27.000,	27.000,	27.000,	},
{14.700,	11.900,	20.000,	25.300,	26.000,	26.000,	26.000,	26.000,	26.000,	26.000,	26.400,	26.800,	27.000,	27.000,	27.000,	27.000,	},
{14.300,	11.400,	19.700,	25.300,	26.000,	26.000,	26.000,	26.000,	26.000,	26.000,	26.400,	26.800,	27.000,	27.000,	27.000,	27.000,	},
};
	copyTable(config->ignitionTable, hardCodedignitionTable);
}

static void cannedveTable() {
	static const float hardCodedveTable[16][16] = {
{20.000,	20.000,	20.000,	20.000,	25.000,	25.000,	10.000,	10.000,	10.000,	10.000,	10.000,	10.000,	10.000,	15.000,	15.000,	15.000,	},
{20.000,	20.000,	20.000,	20.000,	25.000,	25.000,	10.000,	10.000,	10.000,	10.000,	10.000,	10.000,	10.000,	15.000,	15.000,	15.000,	},
{20.000,	20.000,	20.000,	20.000,	20.000,	20.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	},
{20.000,	20.000,	20.000,	20.000,	20.000,	20.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	15.000,	},
{20.000,	20.000,	20.000,	20.000,	20.900,	21.000,	16.100,	16.100,	16.100,	16.100,	16.100,	16.100,	16.100,	16.100,	16.100,	16.100,	},
{20.000,	20.000,	20.000,	20.000,	21.900,	21.900,	17.100,	17.100,	17.100,	17.100,	17.100,	17.100,	17.100,	17.100,	17.100,	17.100,	},
{19.500,	19.500,	19.500,	19.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	22.500,	},
{22.100,	22.100,	22.100,	22.100,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	23.800,	},
{44.700,	44.700,	44.700,	44.700,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	25.000,	},
{50.000,	50.000,	50.000,	50.000,	17.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	27.500,	},
{50.000,	50.000,	50.000,	50.000,	20.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	30.000,	},
{50.000,	50.000,	50.000,	50.000,	22.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	32.500,	},
{50.000,	50.000,	50.000,	50.000,	25.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	35.000,	},
{50.000,	50.000,	50.000,	50.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	},
{65.000,	65.000,	65.000,	65.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	},
{65.000,	65.000,	65.000,	65.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	44.000,	},
};
	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 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 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] = {
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
{1.200,	1.000,	1.000,	1.000,	1.000,	1.000,	},
};
	copyTable(engineConfiguration->postCrankingFactor, hardCodedpostCrankingFactor);
}