mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[commands] Merge CommandBase into Command and SubsystemBase into Subsystem (#5392)
Moves all CommandBase functionality into Command and deprecates CommandBase for removal. Moves all SubsystemBase functionality into Subsystem and deprecates SubsystemBase for removal. Adds a function to CommandScheduler to remove all registered Subsystems.
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
|
||||
package edu.wpi.first.wpilibj.commands.command2;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.CommandBase;
|
||||
import edu.wpi.first.wpilibj2.command.Command;
|
||||
|
||||
public class ReplaceMeCommand extends CommandBase {
|
||||
public class ReplaceMeCommand extends Command {
|
||||
/** Creates a new ReplaceMeCommand. */
|
||||
public ReplaceMeCommand() {
|
||||
// Use addRequirements() here to declare subsystem dependencies.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
package edu.wpi.first.wpilibj.commands.subsystem2;
|
||||
|
||||
import edu.wpi.first.wpilibj2.command.SubsystemBase;
|
||||
import edu.wpi.first.wpilibj2.command.Subsystem;
|
||||
|
||||
public class ReplaceMeSubsystem extends SubsystemBase {
|
||||
public class ReplaceMeSubsystem extends Subsystem {
|
||||
/** Creates a new ReplaceMeSubsystem. */
|
||||
public ReplaceMeSubsystem() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user