AutopilotController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |