Update temperature handling in Reactor class and remove redundant setter
This commit is contained in:
@@ -44,7 +44,7 @@ class Reactor {
|
||||
this.logger.debug(`---------------------- updating ${subType} ------------------ `);
|
||||
switch (subType) {
|
||||
case "temperature":
|
||||
this.logger.debug(`no nothing`);
|
||||
this.temperature = value;
|
||||
break;
|
||||
default:
|
||||
this.logger.error(`Type '${subType}' not recognized for measured update.`);
|
||||
@@ -70,14 +70,6 @@ class Reactor {
|
||||
this.OTR = input.payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for temperature.
|
||||
* @param {object} input - Input object (msg) containing payload with temperature value [C].
|
||||
*/
|
||||
set setTemperature(input) {
|
||||
this.temperature = input.payload;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate the oxygen transfer rate (OTR) based on the dissolved oxygen concentration and temperature.
|
||||
* @param {number} S_O - Dissolved oxygen concentration [g O2 m-3].
|
||||
|
||||
Reference in New Issue
Block a user