[wpilib] Remove GyroBase

This commit is contained in:
Peter Johnson
2021-03-12 15:52:02 -08:00
parent 6b168ab0c8
commit 687066af3d
12 changed files with 78 additions and 73 deletions

View File

@@ -8,7 +8,8 @@
#include <hal/Types.h>
#include "frc/GyroBase.h"
#include "frc/ErrorBase.h"
#include "frc/interfaces/Gyro.h"
#include "frc/smartdashboard/Sendable.h"
#include "frc/smartdashboard/SendableHelper.h"
@@ -29,7 +30,10 @@ class AnalogInput;
*
* This class is for gyro sensors that connect to an analog input.
*/
class AnalogGyro : public GyroBase {
class AnalogGyro : public Gyro,
public ErrorBase,
public Sendable,
public SendableHelper<AnalogGyro> {
public:
static constexpr int kOversampleBits = 10;
static constexpr int kAverageBits = 0;
@@ -190,6 +194,8 @@ class AnalogGyro : public GyroBase {
*/
std::shared_ptr<AnalogInput> GetAnalogInput() const;
void InitSendable(SendableBuilder& builder) override;
protected:
std::shared_ptr<AnalogInput> m_analog;