P parameter multiplier for logs
This commit is contained in:
parent
d00efdca14
commit
675a8edf70
|
@ -226,7 +226,7 @@ static msg_t ivThread(int param) {
|
|||
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->idleMode == IM_AUTO) {
|
||||
// see also tsOutputChannels->idlePosition
|
||||
idlePid.postState(&tsOutputChannels);
|
||||
idlePid.postState(&tsOutputChannels, 1000000);
|
||||
} else {
|
||||
tsOutputChannels.debugFloatField1 = iacPosition;
|
||||
}
|
||||
|
|
|
@ -109,6 +109,10 @@ float Pid::getOffset(void) {
|
|||
|
||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels) {
|
||||
postState(tsOutputChannels, 1);
|
||||
}
|
||||
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels, int pMult) {
|
||||
tsOutputChannels->debugFloatField1 = prevResult;
|
||||
tsOutputChannels->debugFloatField2 = iTerm;
|
||||
tsOutputChannels->debugFloatField3 = getPrevError();
|
||||
|
@ -116,7 +120,7 @@ void Pid::postState(TunerStudioOutputChannels *tsOutputChannels) {
|
|||
tsOutputChannels->debugFloatField5 = getD();
|
||||
tsOutputChannels->debugFloatField6 = pid->minValue;
|
||||
tsOutputChannels->debugFloatField7 = pid->maxValue;
|
||||
tsOutputChannels->debugIntField1 = getP();
|
||||
tsOutputChannels->debugIntField1 = getP() * pMult;
|
||||
tsOutputChannels->debugIntField2 = getOffset();
|
||||
tsOutputChannels->debugIntField3 = resetCounter;
|
||||
tsOutputChannels->debugFloatField6 = dTerm;
|
||||
|
|
|
@ -37,6 +37,7 @@ public:
|
|||
float getPrevError(void);
|
||||
#if EFI_PROD_CODE || EFI_SIMULATOR
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels);
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels, int pMult);
|
||||
#endif
|
||||
float minResult;
|
||||
float maxResult;
|
||||
|
|
Loading…
Reference in New Issue