mirror of https://github.com/FOME-Tech/fome-fw.git
hw ci uses .name() instead of .ordinal()
This commit is contained in:
parent
d907e6123f
commit
add5c8c409
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue