Deprecate GearTooth class for removal (#1878)

It only works with a specific sensor that isn't available anymore, the
class is a trivial wrapper around a Counter, and no one uses this class
according to FMS usage reporting.
This commit is contained in:
Tyler Veness
2019-09-08 11:21:36 -07:00
committed by Peter Johnson
parent 86b666bba9
commit 904479ad43
2 changed files with 17 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2008-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -10,6 +10,8 @@
#include <memory>
#include <string>
#include <wpi/deprecated.h>
#include "frc/Counter.h"
namespace frc {
@@ -34,6 +36,9 @@ class GearTooth : public Counter {
* @param directionSensitive True to enable the pulse length decoding in
* hardware to specify count direction.
*/
WPI_DEPRECATED(
"The only sensor this works with is no longer available and no teams use "
"it according to FMS usage reporting.")
explicit GearTooth(int channel, bool directionSensitive = false);
/**
@@ -46,6 +51,9 @@ class GearTooth : public Counter {
* @param directionSensitive True to enable the pulse length decoding in
* hardware to specify count direction.
*/
WPI_DEPRECATED(
"The only sensor this works with is no longer available and no teams use "
"it according to FMS usage reporting.")
explicit GearTooth(DigitalSource* source, bool directionSensitive = false);
/**
@@ -58,6 +66,9 @@ class GearTooth : public Counter {
* @param directionSensitive True to enable the pulse length decoding in
* hardware to specify count direction.
*/
WPI_DEPRECATED(
"The only sensor this works with is no longer available and no teams use "
"it according to FMS usage reporting.")
explicit GearTooth(std::shared_ptr<DigitalSource> source,
bool directionSensitive = false);