> For the complete documentation index, see [llms.txt](https://docs.holybro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.holybro.com/peripherals/rm3100-compass-dronecan/rm3100-setup-guide.md).

# RM3100 Setup Guide

## **PX4:**

With the newest PX4 firmware, the default setting will auto-detect DroneCAN devices and automatically recognize RM3100 as a compass.

If the flight controller does not recognize RM3100, you can set the following parameters to enable it：

* UAVCAN\_ENABLE = Sensors Automatic Config
* UAVCAN\_SUB\_MAG = 1

![](https://2367252986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLIgtGDAvVGkCKGOJb1bR%2Fuploads%2FxhkfcszAaA8PZ3p91p8d%2F0.png?alt=media)

![](https://2367252986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLIgtGDAvVGkCKGOJb1bR%2Fuploads%2FYpEy8LAYhqEu4Xy15K6H%2F1.png?alt=media)

After setup, remember to calibrate it：

![](https://2367252986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLIgtGDAvVGkCKGOJb1bR%2Fuploads%2Fm3w7IvVtlrSsGXwZ4zXA%2F2.png?alt=media)

After calibration, PX4 will automatically select the onboard compass or RM3100 for directional data.

## **Ardupilot：**

Go to *Mission Planner->CONFIG->Full Parameter List*

Set the following parameters:

**If using CAN1 port:**

* CAN\_D1\_PROTOCOL = 1
* CAN\_P1\_DRIVER = 1

**If using CAN2 port:**

* CAN\_D2\_PROTOCOL = 1
* CAN\_P2\_DRIVER = 1

At the DroneCAN/UAVCAN tab, click MAVlink-CAN1 or MAVlink-CAN2 to list out all CAN devices.&#x20;

{% hint style="warning" %}
Avoid updating the DroneCAN device's firmware unless necessary. In a small chance, an update may brick the device and require opening the case and flashing the microcontroller using ST-Link.
{% endhint %}

![](https://2367252986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLIgtGDAvVGkCKGOJb1bR%2Fuploads%2FfAz0dj7Pu2KGhCYBAxAR%2F3.png?alt=media)

Head to the Compass tab and set the UAVCAN compass to first priority by clicking the bottom.\
Don't forget to reboot your device after setting the priority.

![](https://2367252986-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLIgtGDAvVGkCKGOJb1bR%2Fuploads%2FoOtucqRBldhg5kex6PW8%2F4.png?alt=media)

After reboot, calibrate your compass to finish configuration.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.holybro.com/peripherals/rm3100-compass-dronecan/rm3100-setup-guide.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
