Adjusts target for the autopilot device with the supplied identifier by the supplied value.
value in radians to add to current target value.
identifier of the autopilot device to query.
Instructs the autopilot device to steer for the currently set destination position.
It is assumed that a destination has been set prior to invoking this action.
The intended result of this action is that the autopilot device be engaged in the appropriate mode to steer to the active waypoint / position.
identifier of the autopilot device to query.
Instructs the autopilot device to advance to the next waypoint on the route.
identifier of the autopilot device to query.
disengage(deviceId): This method sets the state of the autopilot device with the supplied identifier to a state that is NOT actively steering the vessel.
identifier of the autopilot device to query.
Instructs the autopilot device with the supplied identifier to enter / exit dodge mode and alter the current course by the supplied value (radians) direction.
+/- value in radians 'port (-ive)' or 'starboard' to change direction. Setting the value to null indicates exit of dodge mode.
identifier of the autopilot device to query.
To address different pilot behaviour, the dodge function can be used in the following ways:
1. Enter dodge mode at the current course
// API request
POST /signalk/v2/api/vessels/self/autopilots/mypilot1/dodge
// _AutopilotProvider method invocation
dodge(0, 'mypilot1');
2. Enter dodge mode and change course
// API request
PUT /signalk/v2/api/vessels/self/autopilots/mypilot1/dodge {"value": 5}
// AutopilotProvider method invocation
dodge(5, 'mypilot1');
3. Cancel dodge mode
// API request
DELETE /signalk/v2/api/vessels/self/autopilots/mypilot1/dodge
// AutopilotProvider method invocation
dodge(null, 'mypilot1');
Sets the state of the autopilot device with the supplied identifier to a state that is actively steering the vessel.
identifier of the autopilot device to query.
This method returns an AutopilotInfo object containing the current data values and valid options for the supplied autopilot device identifier.
It is the responsibility of the autopilot provider plugin to map the value of engaged to the current state.
Additionally, the plugin can maintain a list of availableActions that can be taken in the current
operational state.
identifier of the autopilot device to query.
API request:
GET /signalk/v2/api/vessels/self/autopilots/mypilot1
AutopilotProvider method invocation:
getData('mypilot1');
// Returns:
{
options: {
states: [
{
name: 'auto' // autopilot state name
engaged: true // actively steering
},
{
name: 'standby' // autopilot state name
engaged: false // not actively steering
}
]
modes: ['compass', 'gps', 'wind'], // supported modes of operation
actions: [
{
id: 'tack',
name: 'Tack',
available: true
},
{
id: 'gybe',
name: 'Gybe',
available: false
}
] // actions the autopilot supports
},
target: 0.326
mode: 'compass'
state: 'auto'
engaged: true
}
Returns the current state of the supplied autopilot device identifier. If the autopilot device is not connected or unreachable then off-line should be returned.
identifier of the autopilot device to query.
gybe(direction, deviceId): This method instructs the autopilot device with the supplied identifier to perform a gybe in the supplied direction.
port or starboard
identifier of the autopilot device to query.
Sets the autopilot device with the supplied identifier to the supplied mode value.
Must be a valid mode value.
identifier of the autopilot device to query.
Sets the autopilot device with the supplied identifier to the supplied state value.
state value to set. Must be a valid state value.
identifier of the autopilot device to query.
Sets target for the autopilot device with the supplied identifier to the supplied value.
target value in radians.
identifier of the autopilot device to query.
Instructs the autopilot device with the supplied identifier to perform a tack in the supplied direction.
port or starboard
identifier of the autopilot device to query.