From add5c8c409dbb8454c024bfa82771d8966c8b19d Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 28 Jun 2024 11:33:47 -0700 Subject: [PATCH] hw ci uses .name() instead of .ordinal() --- .../rusefi/f4discovery/CommonFunctionalTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/java_console/autotest/src/main/java/com/rusefi/f4discovery/CommonFunctionalTest.java b/java_console/autotest/src/main/java/com/rusefi/f4discovery/CommonFunctionalTest.java index f8e0391a7b..b809902341 100644 --- a/java_console/autotest/src/main/java/com/rusefi/f4discovery/CommonFunctionalTest.java +++ b/java_console/autotest/src/main/java/com/rusefi/f4discovery/CommonFunctionalTest.java @@ -112,7 +112,7 @@ public class CommonFunctionalTest extends RusefiTestBase { // Alpha-N mode so that we actually inject some fuel (without mocking tons of sensors) ecu.sendCommand("set algorithm 2"); // Set tps to 25% - make alpha-n happy - ecu.sendCommand("set_sensor_mock " + SensorType.Tps1.ordinal() + " 25"); + ecu.sendCommand("set_sensor_mock " + SensorType.Tps1.name() + " 25"); ecu.sendCommand("set rpm_hard_limit 2500"); { @@ -203,8 +203,8 @@ public class CommonFunctionalTest extends RusefiTestBase { ecu.setEngineType(engine_type_e.DODGE_NEON_2003_CRANK); ecu.sendCommand("set wwaeTau 0"); ecu.sendCommand("set wwaeBeta 0"); - ecu.sendCommand("set_sensor_mock " + SensorType.Map.ordinal() + " 69.12"); - ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.ordinal() + " 12"); + ecu.sendCommand("set_sensor_mock " + SensorType.Map.name() + " 69.12"); + ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.name() + " 12"); ecu.sendCommand("disable cylinder_cleanup"); EngineChart chart; String msg = "2003 Neon cranking "; @@ -259,12 +259,12 @@ public class CommonFunctionalTest extends RusefiTestBase { public void testMazdaProtege() { ecu.setEngineType(engine_type_e.FORD_ESCORT_GT); EngineChart chart; - ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.ordinal() + " 12"); + ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.name() + " 12"); // Alpha-N mode so that we actually inject some fuel (without mocking tons of sensors) ecu.sendCommand("set algorithm 2"); // Set tps to 25% - make alpha-n happy - ecu.sendCommand("set_sensor_mock " + SensorType.Tps1.ordinal() + " 25"); + ecu.sendCommand("set_sensor_mock " + SensorType.Tps1.name() + " 25"); ecu.changeRpm(200); ecu.changeRpm(260); @@ -309,7 +309,7 @@ public class CommonFunctionalTest extends RusefiTestBase { assertWaveNotNull(msg, chart, EngineChart.SPARK_3); // switching to Speed Density - ecu.sendCommand("set_sensor_mock " + SensorType.Map.ordinal() + " 69.12"); + ecu.sendCommand("set_sensor_mock " + SensorType.Map.name() + " 69.12"); sendComplexCommand("set algorithm 0"); ecu.changeRpm(2600); ecu.changeRpm(2000); @@ -338,8 +338,8 @@ public class CommonFunctionalTest extends RusefiTestBase { public void testFordAspire() { ecu.setEngineType(engine_type_e.FORD_ASPIRE_1996); ecu.sendCommand("disable cylinder_cleanup"); - ecu.sendCommand("set_sensor_mock " + SensorType.Map.ordinal() + " 69.12"); - ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.ordinal() + " 12"); + ecu.sendCommand("set_sensor_mock " + SensorType.Map.name() + " 69.12"); + ecu.sendCommand("set_sensor_mock " + SensorType.BatteryVoltage.name() + " 12"); String msg; EngineChart chart; // todo: interesting changeRpm(100);