mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
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:
committed by
Peter Johnson
parent
86b666bba9
commit
904479ad43
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user