You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/frc/robot/commands/Align.java
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,21 @@
5
5
packagefrc.robot.commands;
6
6
7
7
importedu.wpi.first.wpilibj2.command.Command;
8
+
importfrc.robot.subsystems.drive.Drive;
9
+
importfrc.robot.subsystems.vision.Vision;
8
10
9
11
/* You should consider using the more terse Command factories API instead https://docs.wpilib.org/en/stable/docs/software/commandbased/organizing-command-based.html#defining-commands */
10
12
publicclassAlignextendsCommand {
11
13
/** Creates a new Align. */
12
-
publicAlign() {
14
+
publicDrivedrive;
15
+
16
+
publicVisionvision;
17
+
18
+
publicAlign(Drive_drive, Vision_vision) {
13
19
// Use addRequirements() here to declare subsystem dependencies.
20
+
drive = _drive;
21
+
vision = _vision;
22
+
addRequirements(drive, vision);
14
23
}
15
24
16
25
// Called when the command is initially scheduled.
0 commit comments