> For the complete documentation index, see [llms.txt](https://yall.yassrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yall.yassrobotics.com/documentation/tuning/tuning-workflow-overview.md).

# Tuning Workflow Overview

[Limelight's own documentation](https://docs.limelightvision.io/) has all of the tuning guidance in this section, but it's spread across a dozen unrelated pages — sensor settings live under "Getting Started," color thresholding lives under the retro pipeline, MegaTag2 IMU tuning lives under AprilTag localization, and PID starting points are buried in a tutorial. This section reorganizes the same guidance into the order you'd actually tune a robot, cross-linked to the YALL API where a step is configured from robot code instead of the web UI.

## The order that works

1. [**Camera sensor settings**](/documentation/tuning/camera-sensor-settings.md) — exposure, black level, gain. Do this first, regardless of pipeline type. Every later step (thresholding, detection, pose accuracy) is easier against a clean image.
2. [**Crosshair calibration**](/documentation/tuning/crosshair-calibration.md) — only if you're driving off `tx`/`ty` directly (visual servoing) rather than a full 3D pose.
3. [**ChArUco camera calibration**](/documentation/tuning/charuco-camera-calibration.md) — only if you need accurate 3D measurements: AprilTag 3D tracking, robot localization, or `getXXXPose_YYYSpace()` calls in general.
4. Pipeline-specific tuning — pick the one matching your active pipeline:
   * [**Retroreflective pipeline tuning**](/documentation/tuning/retroreflective-pipeline-tuning.md) — HSV thresholding, then contour filtering/sorting.
   * [**AprilTag & MegaTag2 localization tuning**](/documentation/tuning/apriltag-and-megatag2-tuning.md) — robot-space offset, field map, IMU mode, assist alpha.
   * [**Neural network pipeline tuning**](/documentation/tuning/neural-network-pipeline-tuning.md) — confidence threshold, crop window.
5. [**PID tuning for aiming & ranging**](/documentation/tuning/pid-tuning-for-aiming-and-ranging.md) — once target tracking itself is stable, tune the control loop that drives on it.

{% hint style="info" %}
Steps 1–4 are almost entirely web UI configuration (the Limelight's pipeline JSON), not YALL API calls — YALL reads the *results* of that tuning, it doesn't perform it. Each page below calls out the few settings that YALL does own, mainly camera offset, robot orientation, and IMU mode.
{% endhint %}

## See Also

* [LimelightSettings & Pipelines](/documentation/understanding/limelight-settings-and-pipelines.md)
* [Pose Estimation & Ambiguity](/documentation/understanding/pose-estimation-and-ambiguity.md)


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://yall.yassrobotics.com/documentation/tuning/tuning-workflow-overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
