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>2020-11-11 12:40:01 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-11-11 12:40:01 +0300
commite872a0a257405c1bb916b06f64dcb9db950d720a (patch)
treeaa272063380fa07f2e49efaccaa5aebb15e6611f /src/Heating/LocalHeater.h
parent3648af1fb778a6e553ae75d579873121978214d0 (diff)
Improvements to heater tuning
Changed heater model parameters to have both fan on and fan off cooling rates
Diffstat (limited to 'src/Heating/LocalHeater.h')
-rw-r--r--src/Heating/LocalHeater.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Heating/LocalHeater.h b/src/Heating/LocalHeater.h
index 07e0abfe..8c32dc39 100644
--- a/src/Heating/LocalHeater.h
+++ b/src/Heating/LocalHeater.h
@@ -15,8 +15,8 @@
#include "Heater.h"
#include "FOPDT.h"
#include "TemperatureError.h"
-#include "Hardware/IoPorts.h"
-#include "GCodes/GCodeResult.h"
+#include <Hardware/IoPorts.h>
+#include <GCodes/GCodeResult.h>
#include <Math/DeviationAccumulator.h>
class HeaterMonitor;
@@ -29,9 +29,9 @@ public:
struct HeaterParameters
{
float heatingRate;
- float coolingTimeConstant;
+ float coolingRate;
float deadTime;
- float gain;
+ unsigned int numCycles;
};
LocalHeater(unsigned int heaterNum) noexcept;
@@ -68,7 +68,7 @@ private:
TemperatureError ReadTemperature() noexcept; // Read and store the temperature of this heater
void DoTuningStep() noexcept; // Called on each temperature sample when auto tuning
void CalculateModel(HeaterParameters& params) noexcept; // Calculate G, td and tc from the accumulated readings
- void ReportModel() noexcept;
+ void SetAndReportModel(bool usingFans) noexcept;
float GetExpectedHeatingRate() const noexcept; // Get the minimum heating rate we expect
void RaiseHeaterFault(const char *format, ...) noexcept;