Add settling basin node, fixed issue with object assignment

This commit is contained in:
2025-06-17 13:00:18 +02:00
parent 1da7a9f602
commit 0469f678c5
5 changed files with 116 additions and 5 deletions

View File

@@ -15,10 +15,10 @@ module.exports = function(RED) {
let F_diff = Math.max(F1 - F2, 0);
let F2_corr = F1 < F2 ? F1 : F2;
let msg_F1 = {...msg};
let msg_F1 = structuredClone(msg);
msg_F1.payload.F = F_diff;
let msg_F2 = structuredClone(msg);
let msg_F2 = {...msg};
msg_F2.payload.F = F2_corr;
msg_F2.payload.inlet = inlet_F2;