Edit

Share via


AutopilotController Class

Definition

This class controls an auto pilot, given an input and an output stream. Depending on the input, it either refines the sequences to a higher resolution (many navigation programs will e.g. only output XTE messages with a cross track error accuracy of 0.1nm, which is useless for precise navigation) or create the sequences based on input waypoints.

public sealed class AutopilotController : IDisposable
type AutopilotController = class
    interface IDisposable
Public NotInheritable Class AutopilotController
Implements IDisposable
Inheritance
AutopilotController
Implements

Constructors

AutopilotController(NmeaSinkAndSource, NmeaSinkAndSource, SentenceCache)

This class can control an autopilot, given an external input (of mainly WPT and RTE sentences)

Properties

NextWaypoint

Returns the next waypoint

NmeaSourceName

Name of the Source from which to take positions. Null to take any source (but this may cause side effects if multiple GPS devices are active, because they deliver slightly different data)

OperationState

Current operating state of the autopilot controller

Running

Returns true if the processing thread is running

WaypointSwitchDistance

When routing ourselves (no RMB message as input), we switch to the next waypoint when closer than this distance or over the bisecting angle to the next leg

Methods

ActivateRoute(Route)

Activates the given route. Note that it is cloned. The NextPoint property is not updated automatically as the route progresses. Investigate NextWaypoint regularly instead.

DisableActiveRoute()

Disables a manually activated route.

Dispose()

Stops and disposes the component

Start()

Starts the processing thread

Stop()

Stops the processing thread.

Applies to