removing unused parameter

This commit is contained in:
rusefi 2017-05-15 08:51:40 -04:00
parent f27f99e9cc
commit ce8218fef2
3 changed files with 9 additions and 11 deletions

View File

@ -23,9 +23,7 @@
#include "trigger_central.h"
#include "trigger_simulator.h"
#if EFI_PROD_CODE
#include "pwm_generator.h"
#endif
TriggerEmulatorHelper::TriggerEmulatorHelper() {
primaryWheelState = false;
@ -157,16 +155,16 @@ static void emulatorApplyPinState(PwmConfig *state, int stateIndex) {
}
}
static void setEmulatorAtIndex(int index, Engine *engine) {
static void setEmulatorAtIndex(int index) {
stopEmulationAtIndex = index;
}
static void resumeStimulator(Engine *engine) {
static void resumeStimulator() {
isEmulating = true;
stopEmulationAtIndex = DO_NOT_STOP;
}
void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine) {
void initTriggerEmulatorLogic(Logging *sharedLogger) {
logger = sharedLogger;
TriggerShape *s = &engine->triggerCentral.triggerShape;
@ -176,8 +174,8 @@ void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine) {
triggerSignal.weComplexInit("position sensor", s->getSize(), s->wave.switchTimes, PWM_PHASE_MAX_WAVE_PER_PWM,
pinStates, updateTriggerShapeIfNeeded, emulatorApplyPinState);
addConsoleActionIP("rpm", (VoidIntVoidPtr) setTriggerEmulatorRPM, engine);
addConsoleActionIP("stop_stimulator_at_index", (VoidIntVoidPtr) setEmulatorAtIndex, engine);
addConsoleActionP("resume_stimulator", (VoidPtr) resumeStimulator, engine);
addConsoleActionI("rpm", setTriggerEmulatorRPM);
addConsoleActionI("stop_stimulator_at_index", setEmulatorAtIndex);
addConsoleAction("resume_stimulator", resumeStimulator);
}
#endif
#endif /* EFI_EMULATE_POSITION_SENSORS */

View File

@ -21,6 +21,6 @@ public:
void handleEmulatorCallback(PwmConfig *state, int stateIndex);
};
void initTriggerEmulatorLogic(Logging *sharedLogger, Engine *engine);
void initTriggerEmulatorLogic(Logging *sharedLogger);
#endif /* TRIGGER_EMULATOR_ALGO_H_ */

View File

@ -51,7 +51,7 @@ void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_S) {
&boardConfiguration->triggerSimulatorPinModes[2]);
#endif /* EFI_PROD_CODE */
initTriggerEmulatorLogic(sharedLogger, engine);
initTriggerEmulatorLogic(sharedLogger);
#else
print("No position sensor(s) emulation\r\n");
#endif /* EFI_EMULATE_POSITION_SENSORS */