> For the complete documentation index, see [llms.txt](https://px4.gitbook.io/px4-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://px4.gitbook.io/px4-user-guide/drone_parts/peripherals/traffic_avoidance_utm.md).

# Air Traffic Avoidance: UTM

## Air Traffic Avoidance: UAS Traffic Management (UTM)

PX4 can use MAVLink [`UTM_GLOBAL_POSITION`](https://mavlink.io/en/messages/common.html#UTM_GLOBAL_POSITION) messages to support simple air traffic avoidance in [missions](/px4-user-guide/flying/flight_modes/mission.md). If a potential collision is detected, PX4 can *warn*, immediately [land](/px4-user-guide/flying/flight_modes/land.md), or [return](/px4-user-guide/flying/flight_modes/return.md) (depending on the value of [`NAV_TRAFF_AVOID`](#NAV_TRAFF_AVOID)).

:::note This implementation is exactly the same as for [ADS-B traffic avoidance](/px4-user-guide/drone_parts/peripherals/traffic_avoidance_adsb.md) (except for the source of other-vehicle data). For more information see [implementation](#implementation) below. :::

### Configure Traffic Avoidance

Configure the trigger distance and action when there is a potential collision using the parameters below:

| Parameter                                                                                      | Description                                                                                                                                                                       |
| ---------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [NAV\_TRAFF\_AVOID](/px4-user-guide/advanced_config/parameter_reference.md#NAV_TRAFF_AVOID)    | Enable traffic avoidance mode specify avoidance response. 0: Disable, 1: Warn only, 2: Return mode, 3: Land mode.                                                                 |
| [NAV\_TRAFF\_A\_HOR](/px4-user-guide/advanced_config/parameter_reference.md#NAV_TRAFF_A_HOR)   | Horizonal radius of cylinder around the vehicle that defines its airspace (i.e. the airspace in the ground plane).                                                                |
| [NAV\_TRAFF\_A\_VER](/px4-user-guide/advanced_config/parameter_reference.md#NAV_TRAFF_A_VER)   | Vertical height above and below vehicle of the cylinder that defines its airspace (also see [NAV\_TRAFF\_A\_HOR](#NAV_TRAFF_A_HOR)).                                              |
| [NAV\_TRAFF\_COLL\_T](/px4-user-guide/advanced_config/parameter_reference.md#NAV_TRAFF_COLL_T) | Collision time threshold. Avoidance will trigger if the estimated time until collision drops below this value (the estimated time is based on relative speed of traffic and UAV). |

### Implementation

PX4 listens for `UTM_GLOBAL_POSITION` MAVLink messages during missions. When a valid message is received, its validity flags, position and heading are mapped into the same `transponder_report` UORB topic used for *ADS-B traffic avoidance*.

The implementation is otherwise *exactly* as described in: [ADS-B traffic avoidance > Implementation](/px4-user-guide/drone_parts/peripherals/traffic_avoidance_adsb.md#implementation).

:::note [UTM\_GLOBAL\_POSITION](https://mavlink.io/en/messages/common.html#UTM_GLOBAL_POSITION) contains additional fields that are not provided by an ADSB transponder (see [ADSB\_VEHICLE](https://mavlink.io/en/messages/common.html#ADSB_VEHICLE)). The current implementation simply drops the additional fields (including information about the vehicle's planned next waypoint). :::

### Further Information

* [ADS-B Traffic Avoidance](/px4-user-guide/drone_parts/peripherals/traffic_avoidance_adsb.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://px4.gitbook.io/px4-user-guide/drone_parts/peripherals/traffic_avoidance_utm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
