Skip to content

Commit

Permalink
change path and disable "enabled by default"
Browse files Browse the repository at this point in the history
  • Loading branch information
humppafreak authored Jan 7, 2024
1 parent 9ae09c1 commit 1c83d30
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions calcs/cpa_tcpa.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"
}
}
]
}
]
Expand Down

0 comments on commit 1c83d30

Please sign in to comment.