From 6f21297d647028d27924a86aaef969d8c6e688a6 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 24 Apr 2020 01:33:37 -0400 Subject: [PATCH] hardware continues integration needs a high RPM high tooth count test case #1351 --- java_console/autotest/src/com/rusefi/AutoTest.java | 4 ++-- java_console/ui/src/com/rusefi/ui/widgets/AnyCommand.java | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/java_console/autotest/src/com/rusefi/AutoTest.java b/java_console/autotest/src/com/rusefi/AutoTest.java index a3bcae3bd8..8f59cff853 100644 --- a/java_console/autotest/src/com/rusefi/AutoTest.java +++ b/java_console/autotest/src/com/rusefi/AutoTest.java @@ -84,7 +84,7 @@ public class AutoTest { changeRpm(900); // TODO: we shall get this RPM higher! // first let's get to expected RPM - assertRpmDoesNotJump(2000, 4, 30, FAIL); + assertRpmDoesNotJump(3000, 15, 30, FAIL); } private static void testV12() { @@ -92,7 +92,7 @@ public class AutoTest { changeRpm(700); // TODO: we shall get this RPM higher! // first let's get to expected RPM - assertRpmDoesNotJump(1200, 4, 30, FAIL); + assertRpmDoesNotJump(1200, 15, 30, FAIL); } public static void assertRpmDoesNotJump(int rpm, int settleTime, int testDuration, Function callback) { diff --git a/java_console/ui/src/com/rusefi/ui/widgets/AnyCommand.java b/java_console/ui/src/com/rusefi/ui/widgets/AnyCommand.java index 55078e4108..5c3466711b 100644 --- a/java_console/ui/src/com/rusefi/ui/widgets/AnyCommand.java +++ b/java_console/ui/src/com/rusefi/ui/widgets/AnyCommand.java @@ -149,15 +149,17 @@ public class AnyCommand { private static void handleStimulationSelfCheck(String rawCommand) { String[] parts = rawCommand.split(" ", 4); - if (parts.length != 3) + if (parts.length != 4) { + MessagesCentral.getInstance().postMessage(AnyCommand.class, "Invalid command length " + parts); return; // let's ignore invalid command + } int rpm = Integer.parseInt(parts[1]); int settleTime = Integer.parseInt(parts[2]); int durationTime = Integer.parseInt(parts[3]); new Thread(new Runnable() { @Override public void run() { - MessagesCentral.getInstance().postMessage(AnyCommand.class, "Will test with RPM" + rpm + ", settle time" + settleTime + "s and duration" + durationTime + "s"); + MessagesCentral.getInstance().postMessage(AnyCommand.class, "Will test with RPM " + rpm + ", settle time" + settleTime + "s and duration" + durationTime + "s"); Function callback = new Function() { @Override public Object apply(String status) {