Skip to content

Commit 80faee0

Browse files
created PrepNeautralToAlliance, PrepOpponentToAlliance, PrepAnywhere states (#31)
Co-authored-by: FRCTeam3255-Shared <frcteam3255@gmail.com>
1 parent bd01cfb commit 80faee0

3 files changed

Lines changed: 99 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
package frc.robot.commands.states;
6+
7+
import edu.wpi.first.wpilibj2.command.Command;
8+
9+
/* 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+
public class PrepAnywhere extends Command {
11+
/** Creates a new PrepAnywhere. */
12+
public PrepAnywhere() {
13+
// Use addRequirements() here to declare subsystem dependencies.
14+
}
15+
16+
// Called when the command is initially scheduled.
17+
@Override
18+
public void initialize() {}
19+
20+
// Called every time the scheduler runs while the command is scheduled.
21+
@Override
22+
public void execute() {}
23+
24+
// Called once the command ends or is interrupted.
25+
@Override
26+
public void end(boolean interrupted) {}
27+
28+
// Returns true when the command should end.
29+
@Override
30+
public boolean isFinished() {
31+
return false;
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
package frc.robot.commands.states;
6+
7+
import edu.wpi.first.wpilibj2.command.Command;
8+
9+
/* 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+
public class PrepNeautralToAlliance extends Command {
11+
/** Creates a new PrepNeautralToAlliance. */
12+
public PrepNeautralToAlliance() {
13+
// Use addRequirements() here to declare subsystem dependencies.
14+
}
15+
16+
// Called when the command is initially scheduled.
17+
@Override
18+
public void initialize() {}
19+
20+
// Called every time the scheduler runs while the command is scheduled.
21+
@Override
22+
public void execute() {}
23+
24+
// Called once the command ends or is interrupted.
25+
@Override
26+
public void end(boolean interrupted) {}
27+
28+
// Returns true when the command should end.
29+
@Override
30+
public boolean isFinished() {
31+
return false;
32+
}
33+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Copyright (c) FIRST and other WPILib contributors.
2+
// Open Source Software; you can modify and/or share it under the terms of
3+
// the WPILib BSD license file in the root directory of this project.
4+
5+
package frc.robot.commands.states;
6+
7+
import edu.wpi.first.wpilibj2.command.Command;
8+
9+
/* 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+
public class PrepOpponentToAlliance extends Command {
11+
/** Creates a new PrepOpponentToAlliance. */
12+
public PrepOpponentToAlliance() {
13+
// Use addRequirements() here to declare subsystem dependencies.
14+
}
15+
16+
// Called when the command is initially scheduled.
17+
@Override
18+
public void initialize() {}
19+
20+
// Called every time the scheduler runs while the command is scheduled.
21+
@Override
22+
public void execute() {}
23+
24+
// Called once the command ends or is interrupted.
25+
@Override
26+
public void end(boolean interrupted) {}
27+
28+
// Returns true when the command should end.
29+
@Override
30+
public boolean isFinished() {
31+
return false;
32+
}
33+
}

0 commit comments

Comments
 (0)