# Module Auto-synchronization

YAGSL will automatically synchronize the absolute encoders and internal encoders of the angle/steering/azimuth motor controllers everytime the module is at rest for half-a-second if the delta between the internal encoder and absolute encoder is greater than the deadband.

This is configurable via `SwerveDrive.setModuleEncoderAutoSynchronize(bool, double)` where the first parameter is the enabled state and second is the deadband in degrees.


---

# Agent Instructions: 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://docs.yagsl.com/overview/our-features/module-auto-synchronization.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.
