2020-12-26 14:12:05 -08:00
|
|
|
// 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.
|
2019-08-25 23:55:59 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-07-14 01:12:01 -04:00
|
|
|
#include <wpi/deprecated.h>
|
2019-08-25 23:55:59 -04:00
|
|
|
|
2019-11-05 20:52:49 -08:00
|
|
|
#include "frc2/command/Subsystem.h"
|
2019-08-25 23:55:59 -04:00
|
|
|
|
|
|
|
|
namespace frc2 {
|
|
|
|
|
/**
|
|
|
|
|
* A base for subsystems that handles registration in the constructor, and
|
|
|
|
|
* provides a more intuitive method for setting the default command.
|
2022-01-08 11:11:34 -08:00
|
|
|
*
|
|
|
|
|
* This class is provided by the NewCommands VendorDep
|
2023-07-14 01:12:01 -04:00
|
|
|
*
|
|
|
|
|
* @deprecated All functionality provided by SubsystemBase has been merged into
|
|
|
|
|
* Subsystem. Use Subsystem instead.
|
2019-08-25 23:55:59 -04:00
|
|
|
*/
|
2023-07-14 01:12:01 -04:00
|
|
|
class [[deprecated("Use Subsystem instead")]] SubsystemBase : public Subsystem {
|
2019-08-25 23:55:59 -04:00
|
|
|
protected:
|
2023-07-14 01:12:01 -04:00
|
|
|
WPI_DEPRECATED("Use Subsystem instead")
|
2019-08-25 23:55:59 -04:00
|
|
|
SubsystemBase();
|
|
|
|
|
};
|
|
|
|
|
} // namespace frc2
|