mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
aarav is stupid. that is all.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user