resetGyroCommand

fun SwerveDrive.resetGyroCommand(angle: Rotation2d = Rotation2d()): Command

Creates a reset gyro command.

Usage Example:

val resetCommand = drive.resetGyroCommand()
controller.start().onTrue(resetCommand)