[oldcommands] Deprecate PIDWrappers, since they use deprecated interfaces (#3868)

This commit is contained in:
sciencewhiz
2022-01-06 18:05:24 -08:00
committed by GitHub
parent b6f44f98be
commit 5ccfc4adbd
14 changed files with 90 additions and 13 deletions

View File

@@ -11,8 +11,13 @@ namespace frc {
/**
* Wrapper so that PIDSource is implemented for AnalogGyro for old PIDController
*
* @deprecated Use frc2::PIDController class instead which doesn't require this
* wrapper.
*/
class PIDAnalogGyro : public PIDSource, public AnalogGyro {
class WPI_DEPRECATED("Use frc2::PIDController class instead.") PIDAnalogGyro
: public PIDSource,
public AnalogGyro {
using AnalogGyro::AnalogGyro;
public: