Changed names

This commit is contained in:
znetsixe
2025-10-14 08:36:45 +02:00
parent 856477df57
commit fa30be5e2d
5 changed files with 22 additions and 26 deletions

View File

@@ -109,7 +109,7 @@ class nodeClass {
* Execute a single tick: update measurement, format and send outputs.
*/
_tick() {
this.source.tick();
//this.source.tick();
const raw = this.source.getOutput();
const processMsg = this._output.formatMsg(raw, this.config, 'process');
@@ -125,14 +125,14 @@ class nodeClass {
_attachInputHandler() {
this.node.on('input', (msg, send, done) => {
switch (msg.topic) {
case 'simulator': this.source.toggleSimulation(); break;
case 'outlierDetection': this.source.toggleOutlierDetection(); break;
case 'calibrate': this.source.calibrate(); break;
case 'measurement':
if (typeof msg.payload === 'number') {
this.source.inputValue = parseFloat(msg.payload);
}
//example
/*case 'simulator':
this.source.toggleSimulation();
break;
default:
this.source.handleInput(msg);
break;
*/
}
done();
});