From a44b74663e071fba70013ad3421feccccd98b6b1 Mon Sep 17 00:00:00 2001 From: Abhishrek05 <90010729+Abhishrek05@users.noreply.github.com> Date: Thu, 26 Oct 2023 17:41:02 -0600 Subject: [PATCH] Joystick Recorder with Operator --- .../robot/commands/Swerve/JoystickRecorder.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc4388/robot/commands/Swerve/JoystickRecorder.java b/src/main/java/frc4388/robot/commands/Swerve/JoystickRecorder.java index d52b53e..fb053ad 100644 --- a/src/main/java/frc4388/robot/commands/Swerve/JoystickRecorder.java +++ b/src/main/java/frc4388/robot/commands/Swerve/JoystickRecorder.java @@ -15,25 +15,28 @@ import edu.wpi.first.wpilibj2.command.CommandBase; import frc4388.robot.subsystems.SwerveDrive; import frc4388.utility.UtilityStructs.TimedOutput; import frc4388.utility.controller.XboxController; +import frc4388.robot.subsystems.Arm; public class JoystickRecorder extends CommandBase { public final SwerveDrive swerve; public final XboxController driveXbox; public final XboxController operatorXbox; - + public final Arm arm; private String filename; public final ArrayList outputs = new ArrayList<>(); private long startTime = -1; /** Creates a new JoystickRecorder. */ public JoystickRecorder(SwerveDrive swerve, XboxController driveXbox, - XboxController operatorXbox, String filename) { + XboxController operatorXbox, Arm arm, String filename) { this.swerve = swerve; - this.driveXbox = driveXbox; - this.operatorXbox = operatorXbox; + this.driveXbox = driveXbox; + this.operatorXbox = operatorXbox; + this.arm = arm; this.filename = filename; addRequirements(this.swerve); + addRequirements(this.arm); } // Called when the command is initially scheduled.