diff --git a/src/main/java/frc4388/robot/commands/DriveCommands/DriveWithInputForTime.java b/src/main/java/frc4388/robot/commands/DriveCommands/DriveWithInputForTime.java index 4a04a22..351109e 100644 --- a/src/main/java/frc4388/robot/commands/DriveCommands/DriveWithInputForTime.java +++ b/src/main/java/frc4388/robot/commands/DriveCommands/DriveWithInputForTime.java @@ -29,7 +29,7 @@ public class DriveWithInputForTime extends CommandBase { this.swerve = swerve; this.inputs = inputs; - this.duration = duration; + this.duration = duration * 1000; // ! convert seconds to milliseconds, duh addRequirements(this.swerve); } diff --git a/src/main/java/frc4388/robot/commands/RunCommandForTime.java b/src/main/java/frc4388/robot/commands/RunCommandForTime.java index 0424b30..25b24ff 100644 --- a/src/main/java/frc4388/robot/commands/RunCommandForTime.java +++ b/src/main/java/frc4388/robot/commands/RunCommandForTime.java @@ -31,7 +31,7 @@ public class RunCommandForTime extends CommandBase { // Use addRequirements() here to declare subsystem dependencies. this.command = command; - this.duration = duration; + this.duration = duration * 1000; // ! convert seconds to milliseconds, duh this.override = override; addRequirements(this.command.getRequirements().toArray(Subsystem[]::new));