From aac97078424e2c9d0682b025dd6c79bb371b3571 Mon Sep 17 00:00:00 2001 From: "Keenan D. Buckley" Date: Thu, 30 Jan 2020 22:11:48 -0700 Subject: [PATCH] Update DriveWithJoystick.java --- .../java/frc4388/robot/commands/DriveWithJoystick.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/frc4388/robot/commands/DriveWithJoystick.java b/src/main/java/frc4388/robot/commands/DriveWithJoystick.java index 2b31457..e663fdb 100644 --- a/src/main/java/frc4388/robot/commands/DriveWithJoystick.java +++ b/src/main/java/frc4388/robot/commands/DriveWithJoystick.java @@ -16,7 +16,12 @@ public class DriveWithJoystick extends CommandBase { private IHandController m_controller; /** - * Creates a new DriveWithJoystick. + * Creates a new DriveWithJoystick to control the drivetrain with an Xbox controller. + * Applies a curved ramp to the input from the controllers to make the robot less "touchy". + * @param subsystem pass the Drive subsystem from {@link frc4388.robot.RobotContainer#RobotContainer() RobotContainer} + * @param controller pass the Driver {@link frc4388.utility.controller.IHandController#getClass() IHandController} using the + * {@link frc4388.robot.RobotContainer#getDriverJoystick() getDriverJoystick()} method in + * {@link frc4388.robot.RobotContainer#RobotContainer() RobotContainer} */ public DriveWithJoystick(Drive subsystem, IHandController controller) { // Use addRequirements() here to declare subsystem dependencies.