auto-sync

This commit is contained in:
rusEfi 2015-02-23 22:05:10 -06:00
parent cbed211e9e
commit 7bc9d94eb4
3 changed files with 18 additions and 8 deletions

View File

@ -41,8 +41,11 @@ arm-none-eabi-size --format=berkeley "build\rusefi.elf"
rem file, let's program the board right away
cd build
../flash_openocd
exit
call ../flash_openocd
cd ..
goto end_of_file
:error
echo Compilation failed
:end_of_file

View File

@ -128,8 +128,8 @@ public class AutoTest {
private static void test1995DodgeNeon() {
setEngineType(2);
WaveChart chart;
sendCommand("set_whole_fuel_map 3");
sendCommand("set_ignition_mode 1");
sendComplexCommand("set_whole_fuel_map 3");
sendComplexCommand("set_ignition_mode 1");
/**
* note that command order matters - RPM change resets wave chart
*/
@ -150,8 +150,9 @@ public class AutoTest {
assertWave(msg, chart, WaveChart.SPARK_3, 0.13333, x + 360);
// switching to Speed Density
sendCommand("set_mock_map_voltage 1");
sendCommand("set_algorithm 3");
if (!TestingUtils.isRealHardware)
sendCommand("set_mock_map_voltage 1");
sendComplexCommand("set_algorithm 3");
chart = nextChart();
x = -70;
assertWaveFall(msg, chart, WaveChart.INJECTOR_4, 0.463, x + 540);
@ -183,7 +184,7 @@ public class AutoTest {
assertWave(msg, chart, WaveChart.SPARK_1, 0.01666, x, x + 120, x + 240, x + 360, x + 480, x + 600);
assertWaveNull(msg, chart, WaveChart.TRIGGER_2);
sendCommand("set_trigger_type 1"); // TT_FORD_ASPIRE
sendComplexCommand("set_trigger_type 1"); // TT_FORD_ASPIRE
chart = nextChart();
assertTrue(msg, chart.get(WaveChart.TRIGGER_2) != null);
}
@ -289,7 +290,8 @@ public class AutoTest {
// switching to Speed Density
if (!TestingUtils.isRealHardware)
sendCommand("set_mock_maf_voltage 2");
sendCommand("set_mock_map_voltage 1");
if (!TestingUtils.isRealHardware)
sendCommand("set_mock_map_voltage 1");
sendComplexCommand("set_algorithm 3");
chart = nextChart();
x = 8.88;

View File

@ -75,6 +75,11 @@
</target>
<target name="realtest" depends="jar">
<java classpath="${jar_file}" classname="com.rusefi.RealHwTest" failonerror="true">
</java>
</target>
</project>