mirror of https://github.com/rusefi/rusefi.git
parent
408d554379
commit
de58c4ccd0
|
@ -3,7 +3,7 @@ package com.rusefi.f4discovery;
|
|||
|
||||
import com.rusefi.RusefiTestBase;
|
||||
import com.rusefi.TestingUtils;
|
||||
import com.rusefi.Timeouts;
|
||||
import com.rusefi.config.generated.Fields;
|
||||
import com.rusefi.core.Sensor;
|
||||
import com.rusefi.core.SensorCentral;
|
||||
import com.rusefi.functional_tests.EcuTestHelper;
|
||||
|
@ -12,6 +12,7 @@ import org.junit.Test;
|
|||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static com.rusefi.IoUtil.getDisableCommand;
|
||||
import static com.rusefi.IoUtil.getEnableCommand;
|
||||
import static com.rusefi.TestingUtils.*;
|
||||
import static com.rusefi.config.generated.Fields.*;
|
||||
|
@ -27,6 +28,22 @@ import static org.junit.Assert.assertTrue;
|
|||
* 3/5/14
|
||||
*/
|
||||
public class CommonFunctionalTest extends RusefiTestBase {
|
||||
@Test
|
||||
public void scheduleBurnDoesNotAffectTriggerIssue2839() {
|
||||
ecu.setEngineType(ET_FORD_ASPIRE);
|
||||
ecu.sendCommand(getDisableCommand(Fields.CMD_SELF_STIMULATION));
|
||||
ecu.sendCommand(getEnableCommand(CMD_EXTERNAL_STIMULATION));
|
||||
sendComplexCommand("set " + "trigger_type" + " " + TT_TT_TOOTHED_WHEEL_60_2);
|
||||
ecu.changeRpm(1200);
|
||||
nextChart();
|
||||
nextChart();
|
||||
int triggerErrors = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
||||
for (int i = 0; i < 7; i++)
|
||||
sendComplexCommand(CMD_BURNCONFIG);
|
||||
int totalTriggerErrorsNow = (int) SensorCentral.getInstance().getValueSource(Sensor.totalTriggerErrorCounter).getValue();
|
||||
EcuTestHelper.assertEquals("totalTriggerErrorCounter", totalTriggerErrorsNow, triggerErrors);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChangingIgnitionMode() {
|
||||
ecu.setEngineType(ET_FORD_ASPIRE);
|
||||
|
|
Loading…
Reference in New Issue