auto-sync

This commit is contained in:
rusEfi 2015-02-02 15:04:16 -06:00
parent 99e4f5c688
commit f3d27b4c0c
1 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,8 @@ public class AutoTest {
private static void mainTestBody() {
testFordAspire();
testMazdaProtege();
testDodgeNeon();
sendCommand("set_engine_type 7");
@ -30,6 +32,19 @@ public class AutoTest {
testFordFiesta();
}
private static void testMazdaProtege() {
sendCommand("set_engine_type 14");
WaveChart chart;
IoUtil.changeRpm(200);
String msg = "ProtegeLX";
chart = nextChart();
double x = 100;
assertWave(msg, chart, WaveChart.SPARK_1, 0.194433, x, x + 180, x + 360, x + 540);
IoUtil.changeRpm(2000);
assertWave(msg, chart, WaveChart.SPARK_1, 0.194433, x, x + 180, x + 360, x + 540);
}
private static void testDodgeNeon() {
sendCommand("set_engine_type 2");
WaveChart chart;