From 026f2ca35913fe7f539a50584a9f2075bd7a8e0a Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sat, 21 Feb 2015 08:04:13 -0600 Subject: [PATCH] auto-sync --- firmware/flash_erase.bat | 2 +- .../autotest/src/com/rusefi/AutoTest.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/firmware/flash_erase.bat b/firmware/flash_erase.bat index 13f8977169..30edc13f6d 100644 --- a/firmware/flash_erase.bat +++ b/firmware/flash_erase.bat @@ -1 +1 @@ -st-link_cli -c SWD ur -P build\rusefi.hex -Rst -Run +st-link_cli -c SWD ur -ME diff --git a/java_console/autotest/src/com/rusefi/AutoTest.java b/java_console/autotest/src/com/rusefi/AutoTest.java index 1498934209..e554baacb1 100644 --- a/java_console/autotest/src/com/rusefi/AutoTest.java +++ b/java_console/autotest/src/com/rusefi/AutoTest.java @@ -18,6 +18,7 @@ import static com.rusefi.TestingUtils.*; */ public class AutoTest { private static void mainTestBody() { + testMazda626(); test2003DodgeNeon(); testFordAspire(); testMazdaProtege(); @@ -26,6 +27,20 @@ public class AutoTest { testFordFiesta(); } + private static void testMazda626() { + sendCommand("set_engine_type 28"); + WaveChart chart; + // time to change engine type + nextChart(); + String msg = "Mazda 626"; + IoUtil.changeRpm(200); + chart = nextChart(); + + double x = 275; + assertWave("aspire default cranking ", chart, WaveChart.SPARK_1, 0.1944, x, x + 180, x + 360, x + 540); + + } + private static void test2003DodgeNeon() { sendCommand("set_engine_type 23"); WaveChart chart;