> 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.parser.json.PIDFPropertiesJson` (each of `drive`/`angle` is a `swervelib.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` — 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 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://yagsl.yassrobotics.com/reference/json-schema/pidfproperties-json.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.
