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-11-30 12:21:07 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-11-30 12:21:07 +0300
commitbab246c932de9a5b8b394bb91b3c999e1bf6bdda (patch)
tree28fe2da0d942730b8cdca9ef8a43ee3cd2e025a2
parentbedd8b358e1dd6acd35c085d223d29956bac9390 (diff)
Added OM fields for new heater model
-rw-r--r--src/Heating/FOPDT.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Heating/FOPDT.cpp b/src/Heating/FOPDT.cpp
index c7d92d64..026458b9 100644
--- a/src/Heating/FOPDT.cpp
+++ b/src/Heating/FOPDT.cpp
@@ -30,16 +30,15 @@ constexpr ObjectModelTableEntry FopDt::objectModelTable[] =
// Within each group, these entries must be in alphabetical order
// 0. FopDt members
{ "coolingExp", OBJECT_MODEL_FUNC(self->coolingRateExponent, 1), ObjectModelEntryFlags::none },
+ { "coolingRate", OBJECT_MODEL_FUNC(self->basicCoolingRate, 3), ObjectModelEntryFlags::none },
{ "deadTime", OBJECT_MODEL_FUNC(self->deadTime, 1), ObjectModelEntryFlags::none },
{ "enabled", OBJECT_MODEL_FUNC(self->enabled), ObjectModelEntryFlags::none },
-// { "gain", OBJECT_MODEL_FUNC(self->GetGainFanOff(), 1), ObjectModelEntryFlags::none }, // legacy, to be removed
+ { "fanCoolingRate", OBJECT_MODEL_FUNC(self->fanCoolingRate, 3), ObjectModelEntryFlags::none },
{ "heatingRate", OBJECT_MODEL_FUNC(self->heatingRate, 3), ObjectModelEntryFlags::none },
{ "inverted", OBJECT_MODEL_FUNC(self->inverted), ObjectModelEntryFlags::none },
{ "maxPwm", OBJECT_MODEL_FUNC(self->maxPwm, 2), ObjectModelEntryFlags::none },
{ "pid", OBJECT_MODEL_FUNC(self, 1), ObjectModelEntryFlags::none },
{ "standardVoltage", OBJECT_MODEL_FUNC(self->standardVoltage, 1), ObjectModelEntryFlags::none },
-// { "timeConstant", OBJECT_MODEL_FUNC(self->GetTimeConstantFanOff(), 1), ObjectModelEntryFlags::none }, // legacy, to be removed
-// { "timeConstantFansOn", OBJECT_MODEL_FUNC(self->GetTimeConstantFanOn(), 1), ObjectModelEntryFlags::none }, // legacy, to be removed
// 1. PID members
{ "d", OBJECT_MODEL_FUNC(self->loadChangeParams.tD * self->loadChangeParams.kP, 1), ObjectModelEntryFlags::none },
@@ -49,7 +48,7 @@ constexpr ObjectModelTableEntry FopDt::objectModelTable[] =
{ "used", OBJECT_MODEL_FUNC(self->usePid), ObjectModelEntryFlags::none },
};
-constexpr uint8_t FopDt::objectModelTableDescriptor[] = { 2, 8, 5 };
+constexpr uint8_t FopDt::objectModelTableDescriptor[] = { 2, 10, 5 };
DEFINE_GET_OBJECT_MODEL_TABLE(FopDt)