# What we do

## Where does YAGSL fit into my program?

YAGSL essentially boils down to one class [`SwerveDrive`](https://broncbotz3481.github.io/YAGSL-Lib/docs/swervelib/SwerveDrive.html) which aims to act like [`DifferentialDrive`](https://github.wpilib.org/allwpilib/docs/release/java/edu/wpi/first/wpilibj/drive/DifferentialDrive.html) from [WPILib](https://docs.wpilib.org/en/stable/docs/software/hardware-apis/motors/wpi-drive-classes.html) except for Swerve Drives.

<figure><img src="/files/Km38jp1aPAWPozzeYrEv" alt="created by DeltaDizzy"><figcaption><p>Diagram Depicting a Drive Subsystem and where <code>SwerveDrive</code>fits into one. (created by DeltaDizzy)</p></figcaption></figure>

## Goals of this guide

* Teach the fundamentals of a `SwerveDrive` and `SwerveModule`s so you could program it yourself if you desire or modify YAGSL.
* Guide you through setting up a YAGSL project based off of the example.
* Your program will be capable of the following with this guide
  * Autonomous (with PathPlanner + integrated commands)
  * Swerve Drive teleop code.


---

# 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/what-we-do.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.
