Made SensorBase a utility class and renamed it to SensorUtil (#813)

This commit is contained in:
Tyler Veness
2018-05-23 20:22:30 -07:00
committed by Peter Johnson
parent ba93f79d8b
commit ecfe95383c
72 changed files with 210 additions and 240 deletions

View File

@@ -13,8 +13,9 @@
#include "Counter.h"
#include "CounterBase.h"
#include "ErrorBase.h"
#include "PIDSource.h"
#include "SensorBase.h"
#include "SmartDashboard/SendableBase.h"
namespace frc {
@@ -36,7 +37,10 @@ class DigitalGlitchFilter;
* All encoders will immediately start counting - Reset() them if you need them
* to be zeroed before use.
*/
class Encoder : public SensorBase, public CounterBase, public PIDSource {
class Encoder : public ErrorBase,
public SendableBase,
public CounterBase,
public PIDSource {
public:
enum IndexingType {
kResetWhileHigh,