Missions server
Use IMissionServer to implement low-level mission protocol handling on the server side (autopilot/simulator).
First register the service:
Then get the service:
Typical handling example:
IMissionServer
Property | Type | Description |
|---|---|---|
|
| Event that is raised whenever the mission count is updated.. |
|
| Gets an observable sequence of MissionRequestListPacket that represents the event raised when a mission request list is received. |
|
| Gets an observable sequence of for mission requests of type int. |
|
| Gets an observable sequence of MissionClearAllPacket events. |
|
| Represents an event that is raised when a mission is set as the current mission. |
|
| Gets the observable sequence that emits MissionAckPayload when a mission acknowledgement is received. |
Method | Return Type | Description |
|---|---|---|
|
| Sends a mission acknowledgment message to the specified target system and component IDs. |
|
| Sends the mission count to the specified target system and component IDs. |
|
| Sends the reached value of a sequence. |
|
| Sends the current mission index to the system. |
|
| Sends a mission item to the server. |
|
| Requests a mission item from the server. |
IMissionServer.SendMissionAck
Parameter | Type | Description |
|---|---|---|
|
| The result of the mission. |
|
| The target system ID. Default value is 0. |
|
| The target component ID. Default value is 0. |
|
| The mission type. Default value is null. |
IMissionServer.SendMissionCount
Parameter | Type | Description |
|---|---|---|
|
| The number of missions to be sent. |
|
| The ID of the target system. (optional, default value is 0) |
|
| The ID of the target component. (optional, default value is 0) |
IMissionServer.SendReached
Parameter | Type | Description |
|---|---|---|
|
| The sequence number. |
|
| Optional cancel token argument. |
IMissionServer.SendMissionCurrent
Parameter | Type | Description |
|---|---|---|
|
| Sends the current mission index to the system. |
|
| Optional cancel token argument. |
IMissionServer.SendMissionItemInt
Parameter | Type | Description |
|---|---|---|
|
| The mission item to be sent. |
|
| The target system ID. Default value is 0. |
|
| The target component ID. Default value is 0. |
|
| Optional cancel token argument. |
IMissionServer.RequestMissionItem
Parameter | Type | Description |
|---|---|---|
|
| The index of the mission item to request. |
|
| The type of the mission item. |
|
| The target system ID. Default value is 0. |
|
| The target component ID. Default value is 0. |
|
| Optional cancel token argument. |