VVT minimum RPM fix #4545
This commit is contained in:
parent
022fd81880
commit
974f6f540d
|
@ -14,7 +14,7 @@ Release template (copy/paste this for new release):
|
|||
-
|
||||
|
||||
### Added
|
||||
-
|
||||
- VVT minimum RPM setting #4545
|
||||
|
||||
### Fixed
|
||||
- Enforce board configuration overrides more strictly #4614
|
||||
|
|
|
@ -105,7 +105,7 @@ expected<percent_t> VvtController::getClosedLoop(angle_t target, angle_t observa
|
|||
void VvtController::setOutput(expected<percent_t> outputValue) {
|
||||
float rpm = Sensor::getOrZero(SensorType::Rpm);
|
||||
#if EFI_SHAFT_POSITION_INPUT
|
||||
bool enabled = rpm > engineConfiguration->cranking.rpm /* todo: make this configurable? */
|
||||
bool enabled = rpm > engineConfiguration->vvtControlMinRpm
|
||||
&& engine->rpmCalculator.getSecondsSinceEngineStart(getTimeNowNt()) > engineConfiguration->vvtActivationDelayMs / MS_PER_SECOND
|
||||
;
|
||||
|
||||
|
@ -150,6 +150,9 @@ void stopVvtControlPins() {
|
|||
}
|
||||
|
||||
void initVvtActuators() {
|
||||
if (engineConfiguration->vvtControlMinRpm < engineConfiguration->cranking.rpm) {
|
||||
engineConfiguration->vvtControlMinRpm = engineConfiguration->cranking.rpm;
|
||||
}
|
||||
|
||||
vvtTable1.init(config->vvtTable1, config->vvtTable1LoadBins,
|
||||
config->vvtTable1RpmBins);
|
||||
|
|
Loading…
Reference in New Issue