1
0
forked from me/IronOS

Refactor PinecilV2 Tuning

Closes #1688
This commit is contained in:
Ben V. Brown
2023-06-04 12:13:26 +10:00
parent 286afad919
commit e7bcf920ba
7 changed files with 24 additions and 13 deletions

View File

@@ -142,10 +142,10 @@ int32_t getPIDResultX10Watts(int32_t setpointDelta) {
// power CMOS is controlled by TIM3->CTR1 (that is software modulated - on/off - by TIM2-CTR4 interrupts). However,
// TIM3->CTR1 is configured with a duty cycle of 50% so, in real, we get only 50% of the presumed power output
// so we basically double the need (gain = 2) to get what we want.
return powerStore.update(TIP_THERMAL_MASS * setpointDelta, // the required power
getTipThermalMass(), // Inertia, smaller numbers increase dominance of the previous value
2, // gain
rate, // PID cycle frequency
return powerStore.update(getTipThermalMass() * setpointDelta, // the required power
getTipInertia(), // Inertia, smaller numbers increase dominance of the previous value
2, // gain
rate, // PID cycle frequency
getX10WattageLimits());
}