61 lines
3.0 KiB
C++
61 lines
3.0 KiB
C++
/*
|
|
* @file mazda_miata_base_maps.cpp
|
|
*
|
|
* Created on: Dec 31, 2018
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
|
*/
|
|
|
|
#include "engine_configuration.h"
|
|
|
|
EXTERN_CONFIG;
|
|
|
|
// todo: use these defaults wider? make them global defaults maybe?
|
|
static const float hardCodedcrankingCycleBins[8] = {1.0, 16.0, 35.0, 54.0, 76.0, 102.0, 132.0, 169.0};
|
|
static const float hardCodedcrankingCycleCoef[8] = {1.9800034, 1.800003, 1.5999985, 1.4000015, 1.2300034, 1.1200027, 1.050003, 1.0199966};
|
|
|
|
/* Generated by TS2C on Thu Jul 30 00:03:20 EDT 2020*/
|
|
void miataNA_setCrankingCycleBins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
MEMCPY(config->crankingCycleBins, hardCodedcrankingCycleBins);
|
|
MEMCPY(config->crankingCycleCoef, hardCodedcrankingCycleCoef);
|
|
}
|
|
|
|
// todo: use these defaults wider? make them global defaults maybe?
|
|
static const float hardCodedcrankingFuelBins[8] = {-20.0, -10.0, 3.6799927, 22.77002, 34.049805, 49.95996, 65.0, 90.0};
|
|
static const float hardCodedcrankingFuelCoef[8] = {2.7999878, 2.2000122, 1.6900024, 1.2900009, 1.199997, 1.050003, 1.0, 1.0};
|
|
|
|
/* Generated by TS2C on Thu Jul 30 00:03:20 EDT 2020*/
|
|
void miataNA_setCrankingFuelBins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
MEMCPY(config->crankingFuelBins, hardCodedcrankingFuelBins);
|
|
MEMCPY(config->crankingFuelCoef, hardCodedcrankingFuelCoef);
|
|
}
|
|
|
|
static const float hardCodediacCoastingBins[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0};
|
|
|
|
static const float hardCodediacCoasting[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0, 110.0};
|
|
|
|
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
|
void miataNA_setIacCoastingBins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
MEMCPY(engineConfiguration->iacCoastingBins, hardCodediacCoastingBins);
|
|
MEMCPY(engineConfiguration->iacCoasting, hardCodediacCoasting);
|
|
}
|
|
|
|
static const float hardCodedcltIdleCorrBins[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 9.439941, 19.120117, 30.810059, 42.509766, 54.529785, 64.21973, 71.90039, 80.0, 90.0, 100.0, 110.0};
|
|
|
|
static const float hardCodedcltIdleCorr[16] = {-40.0, -30.0, -20.0, -10.0, 0.0, 9.439941, 19.120117, 30.810059, 42.509766, 54.529785, 64.21973, 71.90039, 80.0, 90.0, 100.0, 110.0};
|
|
|
|
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
|
void miataNA_setCltIdleCorrBins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
MEMCPY(config->cltIdleCorrBins, hardCodedcltIdleCorrBins);
|
|
MEMCPY(config->cltIdleCorr, hardCodedcltIdleCorr);
|
|
}
|
|
|
|
static const float hardCodedcltIdleRpmBins[16] = {-40.0, -30.0, -20.0, 0.0, 10.0, 20.0, 30.0, 40.0, 60.0, 70.0, 80.0, 90.0, 100.0, 120.0, 130.0, 140.0};
|
|
|
|
static const float hardCodedcltIdleRpm[16] = {-40.0, -30.0, -20.0, 0.0, 10.0, 20.0, 30.0, 40.0, 60.0, 70.0, 80.0, 90.0, 100.0, 120.0, 130.0, 140.0};
|
|
|
|
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
|
void miataNA_setCltIdleRpmBins(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|
MEMCPY(engineConfiguration->cltIdleRpmBins, hardCodedcltIdleRpmBins);
|
|
MEMCPY(engineConfiguration->cltIdleRpm, hardCodedcltIdleRpm);
|
|
}
|