auto-sync

This commit is contained in:
rusEfi 2015-02-21 08:04:13 -06:00
parent 224814f0d5
commit 026f2ca359
2 changed files with 16 additions and 1 deletions

View File

@ -1 +1 @@
st-link_cli -c SWD ur -P build\rusefi.hex -Rst -Run
st-link_cli -c SWD ur -ME

View File

@ -18,6 +18,7 @@ import static com.rusefi.TestingUtils.*;
*/
public class AutoTest {
private static void mainTestBody() {
testMazda626();
test2003DodgeNeon();
testFordAspire();
testMazdaProtege();
@ -26,6 +27,20 @@ public class AutoTest {
testFordFiesta();
}
private static void testMazda626() {
sendCommand("set_engine_type 28");
WaveChart chart;
// time to change engine type
nextChart();
String msg = "Mazda 626";
IoUtil.changeRpm(200);
chart = nextChart();
double x = 275;
assertWave("aspire default cranking ", chart, WaveChart.SPARK_1, 0.1944, x, x + 180, x + 360, x + 540);
}
private static void test2003DodgeNeon() {
sendCommand("set_engine_type 23");
WaveChart chart;