Updated swervelib documentation and merged @7910f6ba7ee4 PR

This commit is contained in:
thenetworkgrinch
2023-02-14 22:03:02 -06:00
parent 154bee371a
commit 9a7ba52cee
126 changed files with 12415 additions and 23714 deletions

View File

@@ -9,14 +9,18 @@ import edu.wpi.first.math.kinematics.SwerveModuleState;
public class SwerveModuleState2 extends SwerveModuleState
{
public double speedMetersPerSecond;
/**
* Swerve module speed in meters per second.
*/
public double speedMetersPerSecond;
/**
* Rad per sec
*/
public double omegaRadPerSecond = 0;
public Rotation2d angle = Rotation2d.fromDegrees(0);
public double omegaRadPerSecond = 0;
/**
* Swerve module angle as a {@link Rotation2d}.
*/
public Rotation2d angle = Rotation2d.fromDegrees(0);
/**
* Constructs a SwerveModuleState with zeros for speed and angle.