mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[commands] Deprecate control commands and subsystems (#7143)
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
#include <utility>
|
||||
|
||||
#include <wpi/deprecated.h>
|
||||
|
||||
using namespace frc2;
|
||||
|
||||
PIDCommand::PIDCommand(frc::PIDController controller,
|
||||
@@ -19,6 +21,7 @@ PIDCommand::PIDCommand(frc::PIDController controller,
|
||||
m_useOutput{std::move(useOutput)} {
|
||||
AddRequirements(requirements);
|
||||
}
|
||||
WPI_IGNORE_DEPRECATED
|
||||
|
||||
PIDCommand::PIDCommand(frc::PIDController controller,
|
||||
std::function<double()> measurementSource,
|
||||
@@ -27,6 +30,7 @@ PIDCommand::PIDCommand(frc::PIDController controller,
|
||||
: PIDCommand(
|
||||
controller, measurementSource, [setpoint] { return setpoint; },
|
||||
useOutput, requirements) {}
|
||||
WPI_UNIGNORE_DEPRECATED
|
||||
|
||||
void PIDCommand::Initialize() {
|
||||
m_controller.Reset();
|
||||
|
||||
Reference in New Issue
Block a user