> For the complete documentation index, see [llms.txt](https://yagsl.gitbook.io/yams/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yagsl.gitbook.io/yams/documentation/how-to/how-to-disable-linear-closed-loop-control.md).

# How to disable linear closed loop control?

<figure><img src="/files/7qY7Tsv4CrhaDnlPHbJU" alt=""><figcaption><p>Measurement, Mechanism, and Rotor units</p></figcaption></figure>

## What is linear closed loop control?

Linear closed loop control is when the closed loop controller operate in `meters` and `meters per second` instead of `rotations` and `rotations per second`. This directly affects your PID gains.&#x20;

## When would I want to disable it?

Sometimes you would like to get `Measurement` (like `SmartMotorController.getMeasurementPosition` and `SmartMotorController.getMeasurementVelocity`) data without enabling linear closed loop control.&#x20;

* Measuring shooter speed in `meters per second` for easier shoot on the move calculation
* Supplying linear velocity or data which is translated to angle's or angular velocities inside of the `SmartMotorController`.

## How do I disable it?

Inside of your `SmartMotorControllerConfig` you would use `withLinearClosedLoopController(false)`

<pre class="language-java"><code class="lang-java">SmartMotorControllerConfig motorConfig        = new SmartMotorControllerConfig(this)
      .withControlMode(ControlMode.CLOSED_LOOP)
      .withWheelDiameter(Inches.of(4))
      .withIdleMode(MotorMode.COAST)
      .withClosedLoopController(50,0,0,MetersPerSecond.of(3), MetersPerSecondPerSecond.of(5))
<strong>      .withLinearClosedLoopController(false);
</strong></code></pre>


---

# 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:

```
GET https://yagsl.gitbook.io/yams/documentation/how-to/how-to-disable-linear-closed-loop-control.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.
