Position client
To work with the Position microservice from a client, request the IPositionClient from the device instance:
After that, you can subscribe to various position-related observables. For example, current global position:
Or the current altitude:
IPositionClient (source)
Represents a client that accesses position-related data.
Property | Type | Description |
---|---|---|
|
| Gets the RX value for GlobalPosition of type GlobalPositionIntPayload. |
|
| Gets the home position of the property Home. |
|
| Gets the target position value. |
|
| Gets the observable altitude value. |
|
| The VfrHud property provides access to an ReadOnlyReactiveProperty interface for VfrHudPayload, which represents the information received from a VFR (Visual Flight Rules) Heads-Up Display (HUD). |
|
| Gets the reactive value representing the high resolution IMU payload. |
|
| Gets the RX value of the current Attitude payload. |
Method | Return Type | Description |
---|---|---|
|
| Sets a desired vehicle position, velocity, and/or acceleration in a global coordinate system (WGS 84). Used by an external controller to command the vehicle (manual controller or other system). |
|
| Set vehicle target in local NED coordinates. |
IPositionClient.SetTargetGlobalInt
Parameter | Type | Description |
---|---|---|
|
| Timestamp (time since system boot). |
|
| Frame: global, relative alt, or terrain alt. |
|
| Latitude in WGS 84 frame. |
|
| Longitude in WGS 84 frame. |
|
| Altitude (MSL, relative, or AGL). |
|
| X velocity in NED frame. |
|
| Y velocity in NED frame. |
|
| Z velocity in NED frame. |
|
| X acceleration/force in NED frame. |
|
| Y acceleration/force in NED frame. |
|
| Z acceleration/force in NED frame. |
|
| Yaw setpoint. |
|
| Yaw rate setpoint. |
|
| Bitmap indicating which dimensions to ignore. |
|
| Optional cancellation token. |
IPositionClient.SetPositionTargetLocalNed
Parameter | Type | Description |
---|---|---|
|
| Timestamp (time since system boot). |
|
| Frame: local NED, body, or offset. |
|
| Bitmap indicating which dimensions to ignore. |
|
| X position in NED frame. |
|
| Y position in NED frame. |
|
| Z position in NED frame (altitude negative). |
|
| X velocity in NED frame. |
|
| Y velocity in NED frame. |
|
| Z velocity in NED frame. |
|
| X acceleration/force in NED frame. |
|
| Y acceleration/force in NED frame. |
|
| Z acceleration/force in NED frame. |
|
| Yaw setpoint. |
|
| Yaw rate setpoint. |
|
| Optional cancellation token. |