From a598f0f8408a5500871d615b95c3b27322e00bff Mon Sep 17 00:00:00 2001 From: ryan123rudder <42309874+ryan123rudder@users.noreply.github.com> Date: Fri, 24 Dec 2021 14:00:56 -0700 Subject: [PATCH] Update SwerveDrive.java --- src/main/java/frc4388/robot/subsystems/SwerveDrive.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc4388/robot/subsystems/SwerveDrive.java b/src/main/java/frc4388/robot/subsystems/SwerveDrive.java index 1a2abef..bf891f5 100644 --- a/src/main/java/frc4388/robot/subsystems/SwerveDrive.java +++ b/src/main/java/frc4388/robot/subsystems/SwerveDrive.java @@ -93,7 +93,14 @@ public class SwerveDrive extends SubsystemBase //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) { /*var speeds = new ChassisSpeeds(strafeX, strafeY, rotate * SwerveDriveConstants.ROTATION_SPEED //in rad/s );