Starter seems to be engaged forever #1965

This commit is contained in:
rusefillc 2020-11-18 19:51:51 -05:00
parent 35754d298a
commit 4c9c8d42bf
2 changed files with 5 additions and 0 deletions

View File

@ -584,6 +584,7 @@ void startIdleBench(void) {
void startIdleThread(Logging*sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) { void startIdleThread(Logging*sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX) {
logger = sharedLogger; logger = sharedLogger;
INJECT_ENGINE_REFERENCE(&idleControllerInstance); INJECT_ENGINE_REFERENCE(&idleControllerInstance);
INJECT_ENGINE_REFERENCE(&industrialWithOverrideIdlePid);
getIdlePid(PASS_ENGINE_PARAMETER_SIGNATURE)->initPidClass(&engineConfiguration->idleRpmPid); getIdlePid(PASS_ENGINE_PARAMETER_SIGNATURE)->initPidClass(&engineConfiguration->idleRpmPid);

View File

@ -12,6 +12,8 @@
#if EFI_PROD_CODE || EFI_SIMULATOR #if EFI_PROD_CODE || EFI_SIMULATOR
#include "tunerstudio_outputs.h" #include "tunerstudio_outputs.h"
#else
#include "engine.h"
#endif #endif
// See PidCic below // See PidCic below
@ -36,6 +38,8 @@ class Logging;
class Pid : public pid_state_s { class Pid : public pid_state_s {
public: public:
DECLARE_ENGINE_PTR;
Pid(); Pid();
explicit Pid(pid_s *parameters); explicit Pid(pid_s *parameters);
void initPidClass(pid_s *parameters); void initPidClass(pid_s *parameters);