Interface IMyBasicMissionAutopilot
Describes autopilot mission for the Basic AI block
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyBasicMissionAutopilot : IMyBasicMissionComponent, IMyBasicMissionComponent
Properties
Mode
Current FlightMode
Declaration
FlightMode Mode { get; }
Property Value
| Type | Description |
|---|---|
| FlightMode |
Methods
AddWaypoint(IMyAutopilotWaypoint)
Adds waypoint
Declaration
void AddWaypoint(IMyAutopilotWaypoint waypoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyAutopilotWaypoint | waypoint |
AddWaypoint(IMyGps)
Adds waypoint from gps
Declaration
void AddWaypoint(IMyGps gps)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyGps | gps |
ClearWaypoints()
Removes all waypoints
Declaration
void ClearWaypoints()
GetLastWaypoint()
Gets the last waypoint
Declaration
IMyAutopilotWaypoint GetLastWaypoint()
Returns
| Type | Description |
|---|---|
| IMyAutopilotWaypoint |
GetWaypoints(List<IMyAutopilotWaypoint>)
Gets list of waypoints in this component
Declaration
void GetWaypoints(List<IMyAutopilotWaypoint> points)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.List<IMyAutopilotWaypoint> | points |
RemoveWaypoint(IMyAutopilotWaypoint)
Removes waypoint
Declaration
void RemoveWaypoint(IMyAutopilotWaypoint waypoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyAutopilotWaypoint | waypoint | Waypoint to remove |
SetMode(FlightMode)
Sets current FlightMode
Declaration
void SetMode(FlightMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| FlightMode | mode |