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

# PivotConfig

A pivot is a rotating mechanism such as a turret or a wrist. It is different from an arm because it does not account for gravity. The [Turrets/Wrists](https://yams.yassrobotics.com/documentation/understanding/turrets-wrists.md) page shows a complete pivot.

<figure><img src="https://1354553280-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZM0CFmYiQzcrY4zDcTtZ%2Fuploads%2Fgit-blob-c2b06d3aa0ed4a7f2b0c8e3b7fd5ec15c14acb6e%2Fmech-pivot-vs-arm.png?alt=media" alt="Two panels. An Arm accounts for gravity: it swings up and down, needs kG to hold and uses ArmFeedforward. A Pivot does not account for gravity: it is for a vertical axis or a balanced wrist, has no kG and uses SimpleMotorFeedforward."><figcaption><p>An Arm accounts for gravity. A Pivot does not.</p></figcaption></figure>

`PivotConfig` has only the [shared options](https://yams.yassrobotics.com/documentation/reference/mechanism-configs/shared-options.md): telemetry, hard limits, color and position. Everything else about a pivot is on its motor config.

```java
new PivotConfig()
    .withHardLimits(Degrees.of(-200), Degrees.of(200)) // wiring stops it spinning forever
    .withTelemetry("Turret", TelemetryVerbosity.HIGH);
```

## What else a pivot needs

| For                                      | Use                                                                                                                                                                                   |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The physical stops                       | [`withHardLimits`](https://yams.yassrobotics.com/documentation/reference/mechanism-configs/shared-options.md#withhardlimits). **Required** in simulation.                             |
| A turret that can spin all the way round | [`withContinuousWrapping`](https://yams.yassrobotics.com/documentation/reference/editor/config/closed-loop-control.md#withcontinuouswrapping) on the motor config, and no soft limits |
| A turret limited by its wiring           | [`withSoftLimits`](https://yams.yassrobotics.com/documentation/reference/editor/config/limits-and-protection.md#withsoftlimits) on the motor config                                   |
| The pivot's weight in simulation         | [`withMomentOfInertia`](https://yams.yassrobotics.com/documentation/reference/editor/config/simulation.md#withmomentofinertia) on the motor config                                    |
| Feedforward                              | [`SimpleMotorFeedforward`](https://yams.yassrobotics.com/documentation/reference/editor/config/feedforward.md#withfeedforward): a pivot has no `kG`                                   |
| A turret geared to turn more than once   | [EasyCRT](https://yams.yassrobotics.com/documentation/understanding/easycrt.md)                                                                                                       |

## Code reference

* [`PivotConfig`](https://github.com/Yet-Another-Software-Suite/YAMS/blob/master/yams/java/yams/core/mechanisms/config/PivotConfig.java)
* [`Pivot`](https://github.com/Yet-Another-Software-Suite/YAMS/blob/master/yams/java/yams/core/mechanisms/positional/Pivot.java)


---

# 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://yams.yassrobotics.com/documentation/reference/mechanism-configs/pivot-config.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.
