basic hw in the loop - pwm self validation #2028
This commit is contained in:
parent
2f15c08498
commit
d6ea410424
|
@ -1361,7 +1361,7 @@ void initSettings(void) {
|
|||
addConsoleActionSS("set_injection_pin", setInjectionPin);
|
||||
addConsoleActionSS("set_ignition_pin", setIgnitionPin);
|
||||
addConsoleActionSS(CMD_TRIGGER_PIN, setTriggerInputPin);
|
||||
addConsoleActionSS("set_trigger_simulator_pin", setTriggerSimulatorPin);
|
||||
addConsoleActionSS(CMD_TRIGGER_SIMULATOR_PIN, setTriggerSimulatorPin);
|
||||
|
||||
addConsoleActionSS("set_egt_cs_pin", (VoidCharPtrCharPtr) setEgtCSPin);
|
||||
addConsoleActionI("set_egt_spi", setEgtSpi);
|
||||
|
|
|
@ -196,8 +196,12 @@ void onConfigurationChangeRpmEmulatorCallback(engine_configuration_s *previousCo
|
|||
void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
||||
scheduleMsg(sharedLogger, "Emulating %s", getConfigurationName(engineConfiguration->engineType));
|
||||
|
||||
for (size_t i = 0; i < efi::size(emulatorOutputs); i++)
|
||||
{
|
||||
initTriggerEmulatorLogic(sharedLogger);
|
||||
}
|
||||
|
||||
void startTriggerEmulatorPins() {
|
||||
hasStimPins = false;
|
||||
for (size_t i = 0; i < efi::size(emulatorOutputs); i++) {
|
||||
triggerSignal.outputPins[i] = &emulatorOutputs[i];
|
||||
|
||||
brain_pin_e pin = CONFIG(triggerSimulatorPins)[i];
|
||||
|
@ -212,16 +216,15 @@ void initTriggerEmulator(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX)
|
|||
&CONFIG(triggerSimulatorPinModes)[i]);
|
||||
#endif
|
||||
}
|
||||
|
||||
initTriggerEmulatorLogic(sharedLogger);
|
||||
}
|
||||
|
||||
void startTriggerEmulatorPins() {
|
||||
|
||||
}
|
||||
|
||||
void stopTriggerEmulatorPins() {
|
||||
|
||||
for (size_t i = 0; i < efi::size(emulatorOutputs); i++) {
|
||||
brain_pin_e brainPin = activeConfiguration.triggerSimulatorPins[i];
|
||||
if (brainPin != GPIO_UNASSIGNED) {
|
||||
efiSetPadUnused(brainPin);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* EFI_EMULATE_POSITION_SENSORS */
|
||||
|
|
Loading…
Reference in New Issue