progress!

This commit is contained in:
rusefi 2023-11-02 21:34:00 -04:00
parent 09f9ac7cc8
commit bedd6f7e96
2 changed files with 3 additions and 1 deletions

View File

@ -110,6 +110,7 @@ void setDefaultBaseEngine() {
#if EFI_SIMULATOR
engineConfiguration->vvtMode[0] = VVT_SINGLE_TOOTH;
engineConfiguration->vvtOffsets[0] = 450;
#endif // EFI_SIMULATOR
#if EFI_SIMULATOR

View File

@ -56,6 +56,7 @@ public class SimulatorFunctionalTest {
private void assertVvtPosition() {
assertNear("RPM", SensorCentral.getInstance().getValue(Sensor.RPMValue), 1200, 5);
assertNear("VVT", SensorCentral.getInstance().getValue(Sensor.vvtPositionB1I), 90, 15);
}
private void assertNear(String message, double actual, double expected, double tolerance) {
@ -187,7 +188,7 @@ public class SimulatorFunctionalTest {
}
}
private void testOutputPin(bench_mode_e pinId, int stateToggleTimeMs) throws InterruptedException {
private void testOutputPin(bench_mode_e pinId, int stateToggleTimeMs) throws InterruptedException {
// gain pin control and reset pin stats (otherwise pin can be randomly toggled before or during the test)
executeIoControlCommand(bench_test_io_control_e.CAN_BENCH_START_PIN_TEST,
new bench_test_packet_ids_e[] { }, (byte)pinId.ordinal());