Files
PX4-Autopilot/docs/en/msg_docs/GeofenceStatus.md
T
2026-09-16 22:11:14 +00:00

43 lines
1.5 KiB
Markdown

---
pageClass: is-wide-page
---
# GeofenceStatus (UORB message)
**TOPICS:** geofence_status
## Fields
| Name | Type | Unit [Frame] | Range/Enum | Description |
| --------------------------------------- | -------- | ------------ | ---------- | -------------------------------------- |
| <a id="fld_timestamp"></a>timestamp | `uint64` | | | time since system start (microseconds) |
| <a id="fld_geofence_id"></a>geofence_id | `uint32` | | | loaded geofence id |
| <a id="fld_status"></a>status | `uint8` | | | Current geofence status |
## Constants
| Name | Type | Value | Description |
| ------------------------------------------------- | ------- | ----- | ----------- |
| <a id="#GF_STATUS_LOADING"></a> GF_STATUS_LOADING | `uint8` | 0 |
| <a id="#GF_STATUS_READY"></a> GF_STATUS_READY | `uint8` | 1 |
| <a id="#GF_STATUS_FAILED"></a> GF_STATUS_FAILED | `uint8` | 2 |
## Source Message
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/GeofenceStatus.msg)
::: details Click here to see original file
```c
uint64 timestamp # time since system start (microseconds)
uint32 geofence_id # loaded geofence id
uint8 status # Current geofence status
uint8 GF_STATUS_LOADING = 0
uint8 GF_STATUS_READY = 1
uint8 GF_STATUS_FAILED = 2
```
:::