Compare commits
1 Commits
11d196f363
...
399e0a8c01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
399e0a8c01 |
@@ -17,6 +17,7 @@
|
|||||||
category: "EVOLV",
|
category: "EVOLV",
|
||||||
color: "#86bbdd",
|
color: "#86bbdd",
|
||||||
defaults: {
|
defaults: {
|
||||||
|
name: { value: "" },
|
||||||
|
|
||||||
// Define specific properties
|
// Define specific properties
|
||||||
speed: { value: 1, required: true },
|
speed: { value: 1, required: true },
|
||||||
|
|||||||
@@ -405,6 +405,7 @@ class nodeClass {
|
|||||||
clearTimeout(this._startupTimeout);
|
clearTimeout(this._startupTimeout);
|
||||||
clearInterval(this._tickInterval);
|
clearInterval(this._tickInterval);
|
||||||
clearInterval(this._statusInterval);
|
clearInterval(this._statusInterval);
|
||||||
|
this.node.status({}); // clear node status badge
|
||||||
|
|
||||||
// Clean up child measurement listeners
|
// Clean up child measurement listeners
|
||||||
const m = this.source;
|
const m = this.source;
|
||||||
|
|||||||
@@ -968,8 +968,7 @@ _callMeasurementHandler(measurementType, value, position, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const rawFlow = this.predictFlow.y(x);
|
const rawFlow = this.predictFlow.y(x);
|
||||||
// Clamp: at position ≤ 0 the pump isn't rotating — physical flow is 0.
|
const cFlow = Math.max(0, rawFlow);
|
||||||
const cFlow = (x <= 0) ? 0 : Math.max(0, rawFlow);
|
|
||||||
this.measurements.type("flow").variant("predicted").position("downstream").value(cFlow,Date.now(),this.unitPolicy.canonical.flow);
|
this.measurements.type("flow").variant("predicted").position("downstream").value(cFlow,Date.now(),this.unitPolicy.canonical.flow);
|
||||||
this.measurements.type("flow").variant("predicted").position("atEquipment").value(cFlow,Date.now(),this.unitPolicy.canonical.flow);
|
this.measurements.type("flow").variant("predicted").position("atEquipment").value(cFlow,Date.now(),this.unitPolicy.canonical.flow);
|
||||||
return cFlow;
|
return cFlow;
|
||||||
@@ -993,7 +992,7 @@ _callMeasurementHandler(measurementType, value, position, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const rawPower = this.predictPower.y(x);
|
const rawPower = this.predictPower.y(x);
|
||||||
const cPower = (x <= 0) ? 0 : Math.max(0, rawPower);
|
const cPower = Math.max(0, rawPower);
|
||||||
this.measurements.type("power").variant("predicted").position('atEquipment').value(cPower, Date.now(), this.unitPolicy.canonical.power);
|
this.measurements.type("power").variant("predicted").position('atEquipment').value(cPower, Date.now(), this.unitPolicy.canonical.power);
|
||||||
return cPower;
|
return cPower;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user