Skip to content

Commit

Permalink
Corrected extrusion feedforward calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Nov 11, 2024
1 parent 4cc23dd commit 52f05eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Heating/LocalHeater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,9 @@ void LocalHeater::SetExtrusionFeedForward(float pwmBoost, float tempBoost) noexc
if (mode == HeaterMode::stable)
{
const float pwmChange = pwmBoost - lastExtrusionPwmBoost;
lastFanPwm = 0.0;
const float boost = GetModel().GetPwmCorrectionForFan(GetTargetTemperature() - NormalAmbientTemperature, pwmChange) * FanFeedForwardMultiplier;
lastExtrusionPwmBoost = pwmBoost;
InterruptCriticalSectionLocker lock;
iAccumulator += boost;
iAccumulator += pwmChange;
}
extrusionTemperatureBoost = tempBoost;
}
Expand Down

0 comments on commit 52f05eb

Please sign in to comment.