hw ci uses .name() instead of .ordinal()

(cherry picked from commit add5c8c409dbb8454c024bfa82771d8966c8b19d)
This commit is contained in:
Matthew Kennedy 2024-06-28 14:33:47 -04:00 committed by rusefillc
parent f4965b0983
commit faf9a0184c
1 changed files with 8 additions and 8 deletions

View File

@ -115,7 +115,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(CMD_SET_SENSOR_MOCK + " " + SensorType.Tps1.ordinal() + " 25");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Tps1.name() + " 25");
ecu.sendCommand("set rpm_hard_limit 2500");
{
@ -185,8 +185,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(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.ordinal() + " 69.12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.BatteryVoltage.ordinal() + " 12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.name() + " 69.12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.BatteryVoltage.name() + " 12");
ecu.sendCommand("disable cylinder_cleanup");
EngineChart chart;
String msg = "2003 Neon cranking ";
@ -245,12 +245,12 @@ public class CommonFunctionalTest extends RusefiTestBase {
public void testMazdaProtege() {
ecu.setEngineType(engine_type_e.FORD_ESCORT_GT);
EngineChart chart;
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.BatteryVoltage.ordinal() + " 12");
ecu.sendCommand(CMD_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(CMD_SET_SENSOR_MOCK + " " + SensorType.Tps1.ordinal() + " 25");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Tps1.name() + " 25");
ecu.changeRpm(200);
ecu.changeRpm(260);
@ -294,7 +294,7 @@ public class CommonFunctionalTest extends RusefiTestBase {
assertWaveNotNull(msg, chart, EngineChart.SPARK_3);
// switching to Speed Density
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.ordinal() + " 69.12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.name() + " 69.12");
sendComplexCommand("set algorithm 0");
ecu.changeRpm(2600);
ecu.changeRpm(2000);
@ -323,8 +323,8 @@ public class CommonFunctionalTest extends RusefiTestBase {
public void testFordAspire() {
ecu.setEngineType(engine_type_e.FORD_ASPIRE_1996);
ecu.sendCommand("disable cylinder_cleanup");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.ordinal() + " 69.12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.BatteryVoltage.ordinal() + " 12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.Map.name() + " 69.12");
ecu.sendCommand(CMD_SET_SENSOR_MOCK + " " + SensorType.BatteryVoltage.name() + " 12");
String msg;
EngineChart chart;
// todo: interesting changeRpm(100);