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

# pidfproperties.json

Default closed-loop PID + feedforward gains shared by every module. Parsed into `swervelib.core.parser.json.PIDFPropertiesJson` (each of `drive`/`angle` is a `swervelib.core.parser.PIDFConfig`).

```json
{
  "drive": {
    "p": 0.5,
    "i": 0.0,
    "d": 0.01
  },
  "angle": {
    "p": 2.0,
    "i": 0.0,
    "d": 0.1
  }
}
```

| Field | Type   | Required | Description                                                                                                                 |
| ----- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| `p`   | number | yes      | Proportional gain.                                                                                                          |
| `i`   | number | yes      | Integral gain.                                                                                                              |
| `d`   | number | yes      | Derivative gain.                                                                                                            |
| `s`   | number | no       | `kS`: static friction feedforward (`SimpleMotorFeedforward`).                                                               |
| `v`   | number | no       | `kV`: velocity feedforward. If left as `0` for the **drive** motor, the parser auto-derives it from the motor's free speed. |
| `a`   | number | no       | `kA`: acceleration feedforward.                                                                                             |

Both `drive` and `angle` are required top-level keys.

## `pidfproperties_sim.json`

Optional. If present, `SwerveParser` uses it instead of `pidfproperties.json` whenever `RobotBase.isSimulation()` is `true`. It has the same shape as above. Use it to tune simulation gains separately from your real robot's gains, without needing to swap files by hand.

{% hint style="warning" %}
There is no more `f` (feedforward) or `iz` (integral zone) field, and no more `output` min/max clamp object. Gains are now expressed as plain PID plus a `SimpleMotorFeedforward`-style `s`/`v`/`a`. See [Schema Changes](/reference/schema-changes.md).
{% endhint %}

See [How to Tune PIDF Gains](/how-to-guides/tune-pidf-gains.md) for a tuning procedure and starting-point values.


---

# 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://yagsl.yassrobotics.com/reference/json-schema/pidfproperties-json.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.
