From 1c83d3005306d805f9de483794e56bb330fc36f1 Mon Sep 17 00:00:00 2001 From: humppafreak <75011426+humppafreak@users.noreply.github.com> Date: Sun, 7 Jan 2024 15:46:45 +0100 Subject: [PATCH] change path and disable "enabled by default" --- calcs/cpa_tcpa.js | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/calcs/cpa_tcpa.js b/calcs/cpa_tcpa.js index 3211968..f96a8fb 100755 --- a/calcs/cpa_tcpa.js +++ b/calcs/cpa_tcpa.js @@ -129,7 +129,6 @@ module.exports = function (app, plugin) { ) if ( - typeof plugin.properties.traffic.distanceToSelf === 'undefined' || plugin.properties.traffic.distanceToSelf ) { app.debug('distance of ' + vessel + ' to self: ' + distance) @@ -139,20 +138,9 @@ module.exports = function (app, plugin) { { values: [ { - path: 'distanceToSelf', + path: 'navigation.distanceToSelf', value: distance } - ], - meta: [ - { - path: 'distanceToSelf', - value: { - units: "m", - description: "distance to own vessel", - displayName: "Distance to self", - shortName: "Distance" - } - } ] } ]