# `Common.Message.SafetySetAllowedArea`
[🔗](https://github.com/fancydrones/xmavlink/blob/main/lib/common.ex#L3922)

# `t`

```elixir
@type t() :: %Common.Message.SafetySetAllowedArea{
  frame: Common.Types.mav_frame(),
  p1x: Float32,
  p1y: Float32,
  p1z: Float32,
  p2x: Float32,
  p2y: Float32,
  p2z: Float32,
  target_component: XMAVLink.Types.uint8_t(),
  target_system: XMAVLink.Types.uint8_t()
}
```

Set a safety zone (volume), which is defined by two corners of a cube. This message can be used to tell the MAV which setpoints/waypoints to accept and which to reject. Safety areas are often enforced by national or competition regulations.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
