trying to fit
This commit is contained in:
parent
85570cc28c
commit
ed77817bf9
|
@ -14,6 +14,9 @@
|
|||
|
||||
#define ts_show_trigger_comparator true
|
||||
|
||||
#define CLT_CURVE_SIZE 4
|
||||
#define TCU_RANGE_COUNT 4
|
||||
|
||||
#define IGN_RPM_COUNT 4
|
||||
#define IGN_LOAD_COUNT 4
|
||||
|
||||
|
|
|
@ -16,8 +16,10 @@ static void cannedidleAdvanceBins() {
|
|||
}
|
||||
|
||||
static void cannedcltIdleRpm() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
static const float hardCodedcltIdleRpm[16] = {1860.0, 1860.0, 1800.0, 1700.0, 1660.0, 1600.0, 1560.0, 1500.0, 1500.0, 1460.0, 1460.0, 1440.0, 1400.0, 1400.0, 1500.0, 1600.0};
|
||||
copyArray(config->cltIdleRpm, hardCodedcltIdleRpm);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
static void cannedidleAdvance() {
|
||||
|
@ -66,8 +68,10 @@ static void cannedpedalToTpsRpmBins() {
|
|||
}
|
||||
|
||||
static void cannedcltIdleCorr() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
static const float hardCodedcltIdleCorr[16] = {1.1, 1.1, 0.9333, 0.9333, 0.9333, 0.8333, 0.6333, 0.6333, 0.5, 0.5, 0.4667, 0.3, 0.3, 0.3, 0.3, 0.3};
|
||||
copyArray(config->cltIdleCorr, hardCodedcltIdleCorr);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
static void cannedcltCrankingCorr() {
|
||||
|
|
|
@ -23,8 +23,10 @@ static const float hardCodediacCoasting[16] = {40.0, 40.0, 40.0, 40.0, 40.0, 40.
|
|||
|
||||
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
||||
void miataNA_setIacCoastingBins() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
copyArray(config->iacCoastingRpmBins, hardCodediacCoastingRpmBins);
|
||||
copyArray(config->iacCoasting, hardCodediacCoasting);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
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};
|
||||
|
@ -33,8 +35,10 @@ static const float hardCodedcltIdleCorr[16] = {1.4000015, 1.3199997, 1.2600021,
|
|||
|
||||
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
||||
void miataNA_setCltIdleCorrBins() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
copyArray(config->cltIdleCorrBins, hardCodedcltIdleCorrBins);
|
||||
copyArray(config->cltIdleCorr, hardCodedcltIdleCorr);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
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};
|
||||
|
@ -43,8 +47,10 @@ static const float hardCodedcltIdleRpm[16] = {1180.0, 1150.0, 1130.0, 1110.0, 10
|
|||
|
||||
/* Generated by TS2C on Fri Jul 31 14:02:18 EDT 2020*/
|
||||
void miataNA_setCltIdleRpmBins() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
copyArray(config->cltIdleRpmBins, hardCodedcltIdleRpmBins);
|
||||
copyArray(config->cltIdleRpm, hardCodedcltIdleRpm);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
static const float hardCodedignitionLoadBins[16] = {10.0, 24.0, 35.0, 55.0, 65.0, 75.0, 84.0, 99.0, 110.0, 125.0, 140.0, 160.0, 180.0, 200.0, 220.0, 250.0};
|
||||
|
|
|
@ -32,6 +32,7 @@ static void setBosch02880155868(injector_s& cfg) {
|
|||
}
|
||||
|
||||
static void setDefaultWarmupFuelEnrichment() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
static const float bins[] =
|
||||
{
|
||||
-40,
|
||||
|
@ -75,6 +76,7 @@ static void setDefaultWarmupFuelEnrichment() {
|
|||
};
|
||||
|
||||
copyArray(config->cltFuelCorr, values);
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
|
||||
static void setDefaultVETable() {
|
||||
|
|
|
@ -324,8 +324,10 @@ static void setDefaultWarmupIdleCorrection() {
|
|||
* see also setTargetRpmCurve()
|
||||
*/
|
||||
static void setDefaultIdleSpeedTarget() {
|
||||
#if CLT_CURVE_SIZE == 16
|
||||
copyArray(config->cltIdleRpmBins, { -30, - 20, -10, 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 , 110, 120 });
|
||||
copyArray(config->cltIdleRpm, { 1350, 1350, 1300, 1200, 1150, 1100, 1050, 1000, 1000, 950, 950, 930, 900, 900, 1000, 1100 });
|
||||
#endif // CLT_CURVE_SIZE
|
||||
}
|
||||
#endif // EFI_ENGINE_CONTROL
|
||||
|
||||
|
|
Loading…
Reference in New Issue