> For the complete documentation index, see [llms.txt](https://hmb-robotics.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hmb-robotics.gitbook.io/documentation/swerve-drive/swerve-code-generator.md).

# Swerve Code Generator

When first coding swerve drive, it is very helpful to use the CTRE swerve code generator. However, it is important you use only CTRE vendor electronics. The generator only works using electronics powered by TalonFX.&#x20;
