mirror of https://github.com/rusefi/rusefi.git
changing TPS/TPS defaults
This commit is contained in:
parent
f762733707
commit
57e62ef8a0
|
@ -136,15 +136,14 @@ static void setDefaultStftSettings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
static const uint8_t tpsTpsTable[TPS_TPS_ACCEL_TABLE][TPS_TPS_ACCEL_TABLE] = {
|
static const uint8_t tpsTpsTable[TPS_TPS_ACCEL_TABLE][TPS_TPS_ACCEL_TABLE] = {
|
||||||
/* Generated by TS2C on Tue Apr 18 21:29:16 EDT 2017*/
|
{ 0, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
{/* 0 0 *//* 0 0.0*/0, /* 1 10.0*/0, /* 2 20.0*/0, /* 3 35.0*/0, /* 4 50.0*/0, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 2, 0, 0, 0, 0, 0, 0, 0 },
|
||||||
{/* 1 10 *//* 0 0.0*/10, /* 1 10.0*/0, /* 2 20.0*/0, /* 3 35.0*/0, /* 4 50.0*/0, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 3, 2, 0, 0, 0, 0, 0, 0 },
|
||||||
{/* 2 20 *//* 0 0.0*/17, /* 1 10.0*/10, /* 2 20.0*/0, /* 3 35.0*/0, /* 4 50.0*/0, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 4, 3, 2, 0, 0, 0, 0, 0 },
|
||||||
{/* 3 35 *//* 0 0.0*/23, /* 1 10.0*/17, /* 2 20.0*/10, /* 3 35.0*/0, /* 4 50.0*/0, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 5, 4, 3, 2, 0, 0, 0, 0 },
|
||||||
{/* 4 50 *//* 0 0.0*/28, /* 1 10.0*/23, /* 2 20.0*/17, /* 3 35.0*/10, /* 4 50.0*/0, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 5, 5, 4, 3, 2, 0, 0, 0 },
|
||||||
{/* 5 65 *//* 0 0.0*/32, /* 1 10.0*/28, /* 2 20.0*/23, /* 3 35.0*/17, /* 4 50.0*/10, /* 5 65.0*/0, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 6, 5, 5, 4, 3, 2, 0, 0 },
|
||||||
{/* 6 80 *//* 0 0.0*/35, /* 1 10.0*/32, /* 2 20.0*/28, /* 3 35.0*/23, /* 4 50.0*/17, /* 5 65.0*/10, /* 6 80.0*/0, /* 7 100.0*/0, },
|
{ 7, 6, 5, 5, 4, 3, 2, 0 },
|
||||||
{/* 7 100 *//* 0 0.0*/37, /* 1 10.0*/35, /* 2 20.0*/32, /* 3 35.0*/28, /* 4 50.0*/23, /* 5 65.0*/17, /* 6 80.0*/10, /* 7 100.0*/0, },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void setMazdaMiataNbTpsTps() {
|
static void setMazdaMiataNbTpsTps() {
|
||||||
|
|
|
@ -63,7 +63,7 @@ TEST(fuel, testTpsAccelEnrichmentScheduling) {
|
||||||
Sensor::setMockValue(SensorType::Tps1, 70);
|
Sensor::setMockValue(SensorType::Tps1, 70);
|
||||||
eth.fireTriggerEvents2(/* count */ 1, 25 /* ms */);
|
eth.fireTriggerEvents2(/* count */ 1, 25 /* ms */);
|
||||||
|
|
||||||
float expectedAEValue = 7;
|
float expectedAEValue = 1.4;
|
||||||
// it does not matter how many times we invoke 'getTpsEnrichment' - state does not change
|
// it does not matter how many times we invoke 'getTpsEnrichment' - state does not change
|
||||||
for (int i = 0; i <20;i++) {
|
for (int i = 0; i <20;i++) {
|
||||||
ASSERT_NEAR(expectedAEValue, engine->tpsAccelEnrichment.getTpsEnrichment(), EPS4D);
|
ASSERT_NEAR(expectedAEValue, engine->tpsAccelEnrichment.getTpsEnrichment(), EPS4D);
|
||||||
|
|
Loading…
Reference in New Issue