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

# `t`

```elixir
@type t() :: %Common.Message.SetMode{
  base_mode: Common.Types.mav_mode(),
  custom_mode: XMAVLink.Types.uint32_t(),
  target_system: XMAVLink.Types.uint8_t()
}
```

Set the system mode, as defined by enum MAV_MODE. There is no target component id as the mode is by definition for the overall aircraft, not only for one component.

---

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