add idle timing defaults (#2155)

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
Matthew Kennedy 2020-12-29 04:47:18 -08:00 committed by GitHub
parent c86b576500
commit 1d4ccfff3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 2 deletions

View File

@ -573,8 +573,20 @@ void setDefaultIdleParameters(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
engineConfiguration->idleRpmPid.iFactor = 0.05f;
engineConfiguration->idleRpmPid.dFactor = 0.0f;
engineConfiguration->idlerpmpid_iTermMin = -200;
engineConfiguration->idlerpmpid_iTermMax = 200;
engineConfiguration->idlerpmpid_iTermMin = -20;
engineConfiguration->idlerpmpid_iTermMax = 20;
// Good starting point is 10 degrees per 100 rpm, aka 0.1 deg/rpm
CONFIG(idleTimingPid).pFactor = 0.1f;
CONFIG(idleTimingPid).iFactor = 0;
CONFIG(idleTimingPid).dFactor = 0;
// Allow +- 10 degrees adjustment
CONFIG(idleTimingPid).minValue = -10;
CONFIG(idleTimingPid).minValue = 10;
// Idle region is target + 100 RPM
CONFIG(idlePidRpmUpperLimit) = 100;
}
#if ! EFI_UNIT_TEST