neon test

(cherry picked from commit 8ba3e3673f0be2fd0fd74bd5fec1217171302afd)
This commit is contained in:
Matthew Kennedy 2023-03-02 22:38:26 -08:00 committed by rusefillc
parent 2b5d13b5c5
commit fb5bfd5f10
1 changed files with 2 additions and 8 deletions

View File

@ -216,13 +216,11 @@ public class CommonFunctionalTest extends RusefiTestBase {
EcuTestHelper.assertSomewhatClose("VBatt", 12, SensorCentral.getInstance().getValue(Sensor.VBATT));
chart = nextChart();
double x = 100;
assertWaveNotNull(msg, chart, EngineChart.SPARK_1);
assertWaveNull(msg, chart, EngineChart.SPARK_2);
assertWaveNotNull(msg, chart, EngineChart.SPARK_3);
assertWaveNull(msg, chart, EngineChart.SPARK_4);
x = 176.856;
// todo: why is width precision so low here? is that because of loaded Windows with 1ms precision?
double widthRatio = 0.25;
// WAT? this was just 0.009733333333333387?
@ -236,14 +234,12 @@ public class CommonFunctionalTest extends RusefiTestBase {
ecu.changeRpm(2700);
ecu.changeRpm(2000);
chart = nextChart();
x = 104.0;
assertWaveNotNull(msg, chart, EngineChart.SPARK_1);
assertWaveNull(msg, chart, EngineChart.SPARK_2);
assertWaveNotNull(msg, chart, EngineChart.SPARK_2);
assertWaveNotNull(msg, chart, EngineChart.SPARK_3);
assertWaveNull(msg, chart, EngineChart.SPARK_4);
assertWaveNotNull(msg, chart, EngineChart.SPARK_4);
chart = nextChart();
x = 74;
assertWaveNotNull(msg, chart, EngineChart.INJECTOR_1);
assertWaveNotNull(msg, chart, EngineChart.INJECTOR_2);
assertWaveNotNull(msg, chart, EngineChart.INJECTOR_3);
@ -258,12 +254,10 @@ public class CommonFunctionalTest extends RusefiTestBase {
ecu.sendCommand("set_whole_timing_map 520");
chart = nextChart();
x = 328;
assertWaveNotNull(msg, chart, EngineChart.SPARK_1);
ecu.sendCommand("set_whole_timing_map 0");
chart = nextChart();
x = 128;
assertWaveNotNull(msg, chart, EngineChart.SPARK_1);
}