Skip to content

Commit

Permalink
feature: add meta for possible values of autopilot.state (#38)
Browse files Browse the repository at this point in the history
sbender9 authored Oct 21, 2024
1 parent 8aec6f7 commit 6a9310f
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -74,8 +74,42 @@ module.exports = function(app) {
app.registerPutHandler('vessels.self',
advance,
autopilot.putAdvanceWaypoint)
}

app.handleMessage(plugin.id, {
updates: [
{
meta: [
{
path: state_path,
value: {
displayName: 'Autopilot State',
type: 'multiple',
possibleValues: [
{
title: 'Standby',
value: 'standby'
},
{
title: 'Auto',
value: 'auto'
},
{
title: 'Wind',
value: 'wind',
},
{
title: 'Route',
value: 'route'
}
]
}
},
]
}
]
})
}

plugin.stop = function() {
onStop.forEach(f => f());
onStop = []

0 comments on commit 6a9310f

Please sign in to comment.