# ADIS16448

{% hint style="warning" %}
Keep your robot still at startup EVERY TIME with this gyroscope.
{% endhint %}

## Documentation

{% embed url="<https://wiki.analog.com/first/adis16448_imu_frc>" %}
Official Documentation
{% endembed %}

{% embed url="<https://docs.wpilib.org/en/stable/docs/software/hardware-apis/sensors/gyros-software.html#adis16448>" %}
WPILib documentation
{% endembed %}

<figure><img src="/files/wLFb1BtVfcFyJDJ0EmS0" alt=""><figcaption></figcaption></figure>

The ADIS16448 is a 3-axis gyroscope meaning it must be parallel to the earth for it to work!

## YAGSL Checklist

* [ ] Ensure the ADIS16448 is attached to the roboRIO firmly.
* [ ] The roboRIO is centered on the robot.
* [ ] The roboRIO is flat parallel to the earth.
* [ ] The robot DOES NOT MOVE AT ALL on startup for at least 10 seconds!

## Communication

The ADIS16448 attaches directly to the SPI port on the roboRIO MXP and is only connectable via there with YAGSL.

## Example `swervedrive.json`

<pre class="language-json"><code class="lang-json">{
  "imu": {
    "type": <a data-footnote-ref href="#user-content-fn-1">"adis16448"</a>,
    "id": <a data-footnote-ref href="#user-content-fn-2">0</a>,
    "canbus": <a data-footnote-ref href="#user-content-fn-3">null</a>
  },
  "invertedIMU": <a data-footnote-ref href="#user-content-fn-4">false</a>,
  "modules": [
    "frontleft.json",
    "frontright.json",
    "backleft.json",
    "backright.json"
  ]
}
</code></pre>

[^1]: Select the `adis16448` gyroscope as the primary gyroscope.

[^2]: ID is not relevant for the NavX so `0` is chosen arbitrarily.

[^3]: The `canbus` is not relavent for the NavX so `null` ensures nothing is set in the configuration.

[^4]: Reads default counterclockwise


---

# 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://docs.yagsl.com/devices/gyroscope/adis16448.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.
