1
0
forked from me/IronOS

Updated cold junction temp curve

* Disabled the hack off on temp as we dont need it for MHP30
* faster ADC on MHP30
This commit is contained in:
Ben V. Brown
2021-05-02 15:45:45 +10:00
parent 018b984665
commit 7a5c0ad20f
9 changed files with 191 additions and 33 deletions

View File

@@ -73,7 +73,6 @@ void startPIDTask(void const *argument __unused) {
// Once we have feed-forward temp estimation we should be able to better tune this.
int32_t x10WattsNeeded = tempToX10Watts(tError);
// tempError.average());
// note that milliWattsNeeded is sometimes negative, this counters overshoot
// from I term's inertia.
x10WattsOut += x10WattsNeeded;
@@ -106,7 +105,7 @@ void startPIDTask(void const *argument __unused) {
}
// Secondary safety check to forcefully disable header when within ADC noise of top of ADC
if (getTipRawTemp(0) > (0x7FFF - 150)) {
if (getTipRawTemp(0) > (0x7FFF - 32)) {
x10WattsOut = 0;
}
if (systemSettings.powerLimit && x10WattsOut > (systemSettings.powerLimit * 10)) {