Update SwerveDrive.java

This commit is contained in:
ryan123rudder
2021-12-24 14:00:56 -07:00
parent 39f50feda4
commit a598f0f840
@@ -93,7 +93,14 @@ public class SwerveDrive extends SubsystemBase
//gyro.reset(); //gyro.reset();
} }
/**
* Method to drive the robot using joystick info.
*
* @param xSpeed Speed of the robot in the x direction (forward).
* @param ySpeed Speed of the robot in the y direction (sideways).
* @param rot Angular rate of the robot.
* @param fieldRelative Whether the provided x and y speeds are relative to the field.
*/
public void driveWithInput(double xSpeed, double ySpeed, double rot, boolean fieldRelative) public void driveWithInput(double xSpeed, double ySpeed, double rot, boolean fieldRelative)
{ {
/*var speeds = new ChassisSpeeds(strafeX, strafeY, rotate * SwerveDriveConstants.ROTATION_SPEED //in rad/s ); /*var speeds = new ChassisSpeeds(strafeX, strafeY, rotate * SwerveDriveConstants.ROTATION_SPEED //in rad/s );