diff --git a/firmware/controllers/trigger/trigger_emulator_algo.cpp b/firmware/controllers/trigger/trigger_emulator_algo.cpp index 9c7fa2cb4c..cbed2598d2 100644 --- a/firmware/controllers/trigger/trigger_emulator_algo.cpp +++ b/firmware/controllers/trigger/trigger_emulator_algo.cpp @@ -144,28 +144,13 @@ static void emulatorApplyPinState(int stateIndex, PwmConfig *state) /* pwm_gen_c #endif /* EFI_PROD_CODE */ } -static bool hackVvtSim = false; - -static TriggerWaveform * getTriggerForEmulation() { -#if EFI_SIMULATOR - if (hackVvtSim) { - static TriggerWaveform mShape; - trigger_config_s triggerType; - triggerType.type = trigger_type_e::TT_MAZDA_MIATA_NA; - mShape.initializeTriggerWaveform(FOUR_STROKE_CAM_SENSOR, triggerType); - return &mShape; - } -#endif - return &engine->triggerCentral.triggerShape; -} - static void startSimulatedTriggerSignal() { // No need to start more than once if (hasInitTriggerEmulator) { return; } - TriggerWaveform *s = getTriggerForEmulation(); + TriggerWaveform *s = &engine->triggerCentral.triggerShape; setTriggerEmulatorRPM(engineConfiguration->triggerSimulatorRpm); triggerEmulatorSignal.weComplexInit( &engine->executor, @@ -209,22 +194,12 @@ void onConfigurationChangeRpmEmulatorCallback(engine_configuration_s *previousCo setTriggerEmulatorRPM(engineConfiguration->triggerSimulatorRpm); } -static void hackVvtSimulation() { - disableTriggerStimulator(); - hackVvtSim = true; - enableTriggerStimulator(); -} - void initTriggerEmulator() { efiPrintf("Emulating %s", getEngine_type_e(engineConfiguration->engineType)); startTriggerEmulatorPins(); addConsoleActionI(CMD_RPM, setTriggerEmulatorRPM); -#if 0 - hackVvtSimulation(); -#endif - addConsoleAction("sim_mitsu", hackVvtSimulation); } #endif /* EFI_UNIT_TEST */