fixed distance compoment for measurement class

This commit is contained in:
znetsixe
2025-10-05 09:34:35 +02:00
parent b1ba23212d
commit 5a0c46cb67
2 changed files with 3 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ class nodeClass {
}
};
console.log(`position vs child for ${this.name} is ${this.config.functionality.positionVsParent}`);
console.log(`position vs child for ${this.name} is ${this.config.functionality.positionVsParent} the distance is ${this.config.functionality.distance}`);
// Utility for formatting outputs
this._output = new outputUtils();
@@ -120,7 +120,7 @@ class nodeClass {
this.node.send([
null,
null,
{ topic: 'registerChild', payload: this.node.id , positionVsParent: this.config?.functionality?.positionVsParent || 'atEquipment' },
{ topic: 'registerChild', payload: this.node.id , positionVsParent: this.config?.functionality?.positionVsParent || 'atEquipment' , distance: this.config?.functionality?.distance || null},
]);
}, 100);
}