goto_location
Command a flying drone to navigate to a specified GPS waypoint and loiter there. Sets latitude, longitude, altitude above launch, and optional heading, while enforcing geofence and altitude limits.
Instructions
Fly to a single waypoint and loiter there. The vehicle must be flying already (armed + taken off).
Args: latitude_deg: Target latitude (WGS84). longitude_deg: Target longitude (WGS84). relative_altitude_m: Target altitude above the launch point, in meters. Checked against the altitude ceiling. yaw_deg: Heading at the target, 0 = north (default 0).
Rejected in readonly mode. The target is also checked against the soft geofence around home (MAVLINK_MCP_GEOFENCE_RADIUS_M, default 200 m). Returns {"goto_started": true, "target": {...}} — travel is asynchronous; poll get_telemetry to track progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| yaw_deg | No | ||
| latitude_deg | Yes | ||
| longitude_deg | Yes | ||
| relative_altitude_m | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||