22 units::meters_per_second_t speed = 0_mps;
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
A rotation in a 2D coordinate frame represented by a point on the unit circle (cosine and sine).
Definition: Rotation2d.h:26
Definition: AprilTagFieldLayout.h:22
Represents the state of one swerve module.
Definition: SwerveModuleState.h:18
static SwerveModuleState Optimize(const SwerveModuleState &desiredState, const Rotation2d ¤tAngle)
Minimize the change in heading the desired swerve module state would require by potentially reversing...
Rotation2d angle
Angle of the module.
Definition: SwerveModuleState.h:27
bool operator==(const SwerveModuleState &other) const
Checks equality between this SwerveModuleState and another object.