diff --git a/Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc2.bin b/Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc3.bin similarity index 66% rename from Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc2.bin rename to Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc3.bin index 988f2f0150..f7f897535d 100644 Binary files a/Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc2.bin and b/Release/Duet-0.6-0.8.5/Edge/RepRapFirmware-1.16rc3.bin differ diff --git a/src/Configuration.h b/src/Configuration.h index 26982b4f33..9d809ed4c9 100644 --- a/src/Configuration.h +++ b/src/Configuration.h @@ -26,11 +26,11 @@ Licence: GPL // Firmware name is now defined in the Pins file #ifndef VERSION -# define VERSION "1.16rc2" +# define VERSION "1.16rc3" #endif #ifndef DATE -# define DATE "2016-11-05" +# define DATE "2016-11-06" #endif #define AUTHORS "reprappro, dc42, zpl, t3p3, dnewman" diff --git a/src/Heating/FOPDT.cpp b/src/Heating/FOPDT.cpp index 1e94344325..f68b463907 100644 --- a/src/Heating/FOPDT.cpp +++ b/src/Heating/FOPDT.cpp @@ -7,13 +7,26 @@ #include "FOPDT.h" #include "Core.h" +#include "Configuration.h" + +FopDt::FopDt() +{ + // Heater 6 on the Duet 0.8.5 is disabled by default at startup so that we can use fan 2. + // Set up sensible defaults in case the user enables the heater without specifying values for all the parameters. + enabled = false; + gain = DefaultHotEndHeaterGain; + timeConstant = DefaultHotEndHeaterTimeConstant; + deadTime = DefaultHotEndHeaterDeadTime; + maxPwm = 1.0; + usePid = true; +} // Check the model parameters are sensible, if they are then save them and return true. bool FopDt::SetParameters(float pg, float ptc, float pdt, float pMaxPwm, bool pUsePid) { if (pg == -1.0 && ptc == -1.0 && pdt == -1.0) { - // Setting all parameters to -1 disabled the heater control completely so we can use the pin for other purposes + // Setting all parameters to -1 disables the heater control completely so we can use the pin for other purposes enabled = false; return true; } diff --git a/src/Heating/FOPDT.h b/src/Heating/FOPDT.h index 8c6a860eb7..55757331f6 100644 --- a/src/Heating/FOPDT.h +++ b/src/Heating/FOPDT.h @@ -20,6 +20,8 @@ struct PidParams class FopDt { public: + FopDt(); + bool SetParameters(float pg, float ptc, float pdt, float pMaxPwm, bool pUsePid); float GetGain() const { return gain; } diff --git a/src/Platform.h b/src/Platform.h index e80704d2b6..e5ce5480bd 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -973,7 +973,7 @@ class Platform AnalogOut(pin, pwm, freq); } #else - AnalogOut(pin, pwm); + AnalogOut(pin, pwm, freq); #endif }