diff --git a/src/nodeClass.js b/src/nodeClass.js
index d8b8d8b..54dad50 100644
--- a/src/nodeClass.js
+++ b/src/nodeClass.js
@@ -254,6 +254,7 @@ class nodeClass {
const childId = msg.payload;
const childObj = this.RED.nodes.getNode(childId);
v.childRegistrationUtils.registerChild(childObj.source ,msg.positionVsParent);
+ v.logger.info("CHECK THIS CHILD____________", childObj);
break;
case 'setMode':
v.setMode(msg.payload);
diff --git a/src/specificClass.js b/src/specificClass.js
index 9e12ac3..9ecf376 100644
--- a/src/specificClass.js
+++ b/src/specificClass.js
@@ -90,7 +90,7 @@ class Valve {
this.childRegistrationUtils = new childRegistrationUtils(this); // Child registration utility
this.vCurve = this.curve[1.204]; // specificy the desired density RECALC THIS AUTOMTICALLY BASED ON DENSITY OF AIR LATER OLIFANT!!
this.predictKv = new predict({curve:this.vCurve}); // load valve size (x : ctrl , y : kv relationship)
- //this.logger.debug(`PredictKv initialized with curve: ${JSON.stringify(this.predictKv)}`);
+ this.logger.debug(`PredictKv initialized with curve: ${JSON.stringify(this.predictKv)}`);
}
// -------- Config -------- //
@@ -288,7 +288,9 @@ class Valve {
switch (variant) {
case ("measured"):
// put value in measurements container
+ this.logger.info('---------------------- updating measured flow ------------------ ');
this.measurements.type("flow").variant("measured").position(position).value(value);
+ this.logger.info('---------------------- updating measured flow finished ------------------ ');
// get latest downstream pressure measurement
const measuredDownStreamP = this.measurements.type("pressure").variant("measured").position("downstream").getCurrentValue(); //update downstream pressure measurement
// update predicted flow measurement
@@ -297,7 +299,9 @@ class Valve {
case ("predicted"):
// put value in measurements container
+ this.logger.info('---------------------- updating predicted flow ------------------ ');
this.measurements.type("flow").variant("predicted").position(position).value(value);
+ this.logger.info('---------------------- updating predicted flow finished ------------------ ');
const predictedDownStreamP = this.measurements.type("pressure").variant("measured").position("downstream").getCurrentValue(); //update downstream pressure measurement
this.updateDeltaPKlep(value,this.kv,predictedDownStreamP,this.rho,this.T); //update deltaP based on new flow
break;
diff --git a/valve.html b/valve.html
index 27760f9..4ec7388 100644
--- a/valve.html
+++ b/valve.html
@@ -1,20 +1,11 @@
-