SCRIPT Move java files

This commit is contained in:
PJ Reiniger
2025-11-07 19:55:40 -05:00
committed by Peter Johnson
parent 7ca1be9bae
commit c350c5f112
1486 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.command2;
import edu.wpi.first.wpilibj2.command.Command;
/* 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 */
public class ReplaceMeCommand extends Command {
/** Creates a new ReplaceMeCommand. */
public ReplaceMeCommand() {
// Use addRequirements() here to declare subsystem dependencies.
}
// Called when the command is initially scheduled.
@Override
public void initialize() {}
// Called every time the scheduler runs while the command is scheduled.
@Override
public void execute() {}
// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
// Returns true when the command should end.
@Override
public boolean isFinished() {
return false;
}
}

View File

@@ -0,0 +1,82 @@
[
{
"name": "Empty Class",
"description": "Create an empty class",
"tags": [
"class"
],
"foldername": "emptyclass",
"replacename": "ReplaceMeEmptyClass",
"commandversion": 0
},
{
"name": "Command",
"description": "A command.",
"tags": [
"command"
],
"foldername": "command2",
"replacename": "ReplaceMeCommand",
"commandversion": 2
},
{
"name": "InstantCommand",
"description": "A command that finishes instantly.",
"tags": [
"instantcommand"
],
"foldername": "instantcommand",
"replacename": "ReplaceMeInstantCommand",
"commandversion": 2
},
{
"name": "ParallelCommandGroup",
"description": "A command group that runs commands in parallel, ending when all commands have finished.",
"tags": [
"parallelcommandgroup"
],
"foldername": "parallelcommandgroup",
"replacename": "ReplaceMeParallelCommandGroup",
"commandversion": 2
},
{
"name": "ParallelDeadlineGroup",
"description": "A command group that runs commands in parallel, ending when a specific command has finished.",
"tags": [
"paralleldeadlinegroup"
],
"foldername": "paralleldeadlinegroup",
"replacename": "ReplaceMeParallelDeadlineGroup",
"commandversion": 2
},
{
"name": "ParallelRaceGroup",
"description": "A command that runs commands in parallel, ending as soon as any command has finished.",
"tags": [
"parallelracegroup"
],
"foldername": "parallelracegroup",
"replacename": "ReplaceMeParallelRaceGroup",
"commandversion": 2
},
{
"name": "SequentialCommandGroup",
"description": "A command group that runs commands in sequence.",
"tags": [
"sequentialcommandgroup"
],
"foldername": "sequentialcommandgroup",
"replacename": "ReplaceMeSequentialCommandGroup",
"commandversion": 2
},
{
"name": "Subsystem",
"description": "A robot subsystem.",
"tags": [
"subsystem"
],
"foldername": "subsystem2",
"replacename": "ReplaceMeSubsystem",
"commandversion": 2
}
]

View File

@@ -0,0 +1,8 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.emptyclass;
/** Add your docs here. */
public class ReplaceMeEmptyClass {}

View File

@@ -0,0 +1,20 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.instantcommand;
import edu.wpi.first.wpilibj2.command.InstantCommand;
// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class ReplaceMeInstantCommand extends InstantCommand {
public ReplaceMeInstantCommand() {
// Use addRequirements() here to declare subsystem dependencies.
}
// Called when the command is initially scheduled.
@Override
public void initialize() {}
}

View File

@@ -0,0 +1,19 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.parallelcommandgroup;
import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class ReplaceMeParallelCommandGroup extends ParallelCommandGroup {
/** Creates a new ReplaceMeParallelCommandGroup. */
public ReplaceMeParallelCommandGroup() {
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands();
}
}

View File

@@ -0,0 +1,21 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.paralleldeadlinegroup;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.ParallelDeadlineGroup;
// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class ReplaceMeParallelDeadlineGroup extends ParallelDeadlineGroup {
/** Creates a new ReplaceMeParallelDeadlineGroup. */
public ReplaceMeParallelDeadlineGroup() {
// Add the deadline command in the super() call. Add other commands using
// addCommands().
super(new InstantCommand());
// addCommands(new FooCommand(), new BarCommand());
}
}

View File

@@ -0,0 +1,19 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.parallelracegroup;
import edu.wpi.first.wpilibj2.command.ParallelRaceGroup;
// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class ReplaceMeParallelRaceGroup extends ParallelRaceGroup {
/** Creates a new ReplaceMeParallelRaceGroup. */
public ReplaceMeParallelRaceGroup() {
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands();
}
}

View File

@@ -0,0 +1,19 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.sequentialcommandgroup;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
// NOTE: Consider using this command inline, rather than writing a subclass. For more
// information, see:
// https://docs.wpilib.org/en/stable/docs/software/commandbased/convenience-features.html
public class ReplaceMeSequentialCommandGroup extends SequentialCommandGroup {
/** Creates a new ReplaceMeSequentialCommandGroup. */
public ReplaceMeSequentialCommandGroup() {
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands();
}
}

View File

@@ -0,0 +1,17 @@
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package edu.wpi.first.wpilibj.commands.subsystem2;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class ReplaceMeSubsystem extends SubsystemBase {
/** Creates a new ReplaceMeSubsystem. */
public ReplaceMeSubsystem() {}
@Override
public void periodic() {
// This method will be called once per scheduler run
}
}