mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
29 lines
899 B
C++
29 lines
899 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2008-2018 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. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#pragma once
|
|
|
|
#include "PIDSource.h"
|
|
#include "SensorBase.h"
|
|
#include "interfaces/Gyro.h"
|
|
|
|
namespace frc {
|
|
|
|
/**
|
|
* GyroBase is the common base class for Gyro implementations such as
|
|
* AnalogGyro.
|
|
*/
|
|
class GyroBase : public Gyro, public SensorBase, public PIDSource {
|
|
public:
|
|
// PIDSource interface
|
|
double PIDGet() override;
|
|
|
|
void InitSendable(SendableBuilder& builder) override;
|
|
};
|
|
|
|
} // namespace frc
|