# Guided mode

In this mode the position, velocity or attitude reference / target / setpoint is provided by a companion computer connected via serial cable and MAVLink. The offboard setpoint can be provided by API like [MAVROS](https://github.com/mavlink/mavros).

Normal mainstream Ardupilot Firmware uses this message flow and Runs a high-level PID Controller:

### Message Flows

| ROS msg name                    | msg type                    | uses                                       |
| ------------------------------- | --------------------------- | ------------------------------------------ |
| mavros/local\_position/odom     | nav\_msgs::Odometry         | Contains local odometry data               |
| mavros/setpoint\_position/local | geometry\_msgs::PoseStamped | Used in offboard mode for postion setpoint |

### Example

![](/files/-LeDmno6XmxsdZnKaIOT)

The instructions for assembling the “essential components” of Copter on Pixhawk and other autopilots. The instructions for adding other hardware are covered in [Optional Hardware](https://ardupilot.org/copter/docs/common-optional-hardware.html#common-optional-hardware).


---

# Agent Instructions: 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://wiki.ariitk.in/wiki/hardware-integration/setting-up-offboard-mission/offboard-mode.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.
