Coil duty cycle ignores dwell #977
This commit is contained in:
parent
4db3fa46cd
commit
96f432fb4c
|
@ -186,6 +186,16 @@ TEST(misc, test1995FordInline6TriggerDecoder) {
|
|||
ASSERT_FLOAT_EQ(0.5, getSparkDwell(2000 PASS_ENGINE_PARAMETER_SUFFIX)) << "running dwell";
|
||||
}
|
||||
|
||||
TEST(misc, testGetCoilDutyCycleIssue977) {
|
||||
WITH_ENGINE_TEST_HELPER(FORD_ASPIRE_1996);
|
||||
|
||||
int rpm = 2000;
|
||||
engine->rpmCalculator.setRpmValue(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
ASSERT_EQ( 4, getSparkDwell(rpm PASS_ENGINE_PARAMETER_SUFFIX)) << "running dwell";
|
||||
|
||||
ASSERT_NEAR( 26.66666, getCoilDutyCycle(rpm PASS_ENGINE_PARAMETER_SUFFIX), 0.0001);
|
||||
}
|
||||
|
||||
TEST(misc, testFordAspire) {
|
||||
printf("*************************************************** testFordAspire\r\n");
|
||||
|
||||
|
@ -208,9 +218,6 @@ TEST(misc, testFordAspire) {
|
|||
engine->rpmCalculator.setRpmValue(rpm PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
ASSERT_EQ( 4, getSparkDwell(rpm PASS_ENGINE_PARAMETER_SUFFIX)) << "running dwell";
|
||||
|
||||
ASSERT_NEAR( 6.666666666, getCoilDutyCycle(rpm PASS_ENGINE_PARAMETER_SUFFIX), 0.0001);
|
||||
|
||||
|
||||
engine->rpmCalculator.setRpmValue(6000 PASS_ENGINE_PARAMETER_SUFFIX);
|
||||
assertEqualsM("higher rpm dwell", 3.25, getSparkDwell(6000 PASS_ENGINE_PARAMETER_SUFFIX));
|
||||
|
||||
|
|
Loading…
Reference in New Issue