From 45d4ed1b9fcc05225fdeb6754590c027dc204824 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 22 Feb 2015 14:09:30 -0600 Subject: [PATCH] auto-sync --- java_console/autotest/src/com/rusefi/AutoTest.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/java_console/autotest/src/com/rusefi/AutoTest.java b/java_console/autotest/src/com/rusefi/AutoTest.java index 9f56896a3b..978f1627ec 100644 --- a/java_console/autotest/src/com/rusefi/AutoTest.java +++ b/java_console/autotest/src/com/rusefi/AutoTest.java @@ -54,7 +54,7 @@ public class AutoTest { WaveChart chart; // time to change engine type nextChart(); - String msg = "2003 Neon cranking"; + String msg = "2003 Neon cranking "; IoUtil.changeRpm(200); nextChart(); @@ -66,10 +66,12 @@ public class AutoTest { assertWaveNull(msg, chart, WaveChart.SPARK_4); x = 176.856; - assertWave(true, msg, chart, WaveChart.INJECTOR_1, 0.006266666666, 0.01, 0.04, x, x + 180, x + 360, x + 540); - assertWave(true, msg, chart, WaveChart.INJECTOR_2, 0.006266666666, 0.01, 0.04, x, x + 180, x + 360, x + 540); - assertWave(true, msg, chart, WaveChart.INJECTOR_3, 0.006266666666, 0.01, 0.04, x, x + 180, x + 360, x + 540); - assertWave(true, msg, chart, WaveChart.INJECTOR_4, 0.006266666666, 0.01, 0.04, x, x + 180, x + 360, x + 540); + // todo: why is width precision so low here? is that because of loaded Windows with 1ms precision? + double widthRatio = 0.25; + assertWave(true, msg, chart, WaveChart.INJECTOR_1, 0.006266666666, 0.01, widthRatio, x, x + 180, x + 360, x + 540); + assertWave(true, msg, chart, WaveChart.INJECTOR_2, 0.006266666666, 0.01, widthRatio, x, x + 180, x + 360, x + 540); + assertWave(true, msg, chart, WaveChart.INJECTOR_3, 0.006266666666, 0.01, widthRatio, x, x + 180, x + 360, x + 540); + assertWave(true, msg, chart, WaveChart.INJECTOR_4, 0.006266666666, 0.01, widthRatio, x, x + 180, x + 360, x + 540); msg = "2003 Neon running"; IoUtil.changeRpm(2000);