Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-05-29 12:41:09 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-05-29 12:41:09 +0300
commitff782fe72421808074ce639398c3b93297f4822a (patch)
tree56b235914ad0cf8b80b4823769008d23dc352e39 /src/Heating/LocalHeater.h
parentb249347bf4fc75cb8cedc6317ae5fe936169b057 (diff)
Report heater averagre PWM in object model instead of lastPwm
Diffstat (limited to 'src/Heating/LocalHeater.h')
-rw-r--r--src/Heating/LocalHeater.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Heating/LocalHeater.h b/src/Heating/LocalHeater.h
index 8fe8dff9..2015eb6e 100644
--- a/src/Heating/LocalHeater.h
+++ b/src/Heating/LocalHeater.h
@@ -66,6 +66,7 @@ private:
float previousTemperatures[NumPreviousTemperatures]; // The temperatures of the previous NumDerivativeSamples measurements, used for calculating the derivative
size_t previousTemperatureIndex; // Which slot in previousTemperature we fill in next
float iAccumulator; // The integral LocalHeater component
+ float lastPwm; // The last PWM value set for this heater
float averagePWM; // The running average of the PWM, after scaling.
uint32_t timeSetHeating; // When we turned on the heater
uint32_t lastSampleTime; // Time when the temperature was last sampled by Spin()