WPILibC++  unspecified
GyroBase.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include "PIDSource.h"
11 #include "SensorBase.h"
12 #include "interfaces/Gyro.h"
13 
14 namespace frc {
15 
20 class GyroBase : public Gyro, public SensorBase, public PIDSource {
21  public:
22  // PIDSource interface
23  double PIDGet() override;
24 
25  void InitSendable(SendableBuilder& builder) override;
26 };
27 
28 } // namespace frc
Definition: RobotController.cpp:14
Base class for all sensors.
Definition: SensorBase.h:25
PIDSource interface is a generic sensor source for the PID class.
Definition: PIDSource.h:20
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: GyroBase.cpp:32
GyroBase is the common base class for Gyro implementations such as AnalogGyro.
Definition: GyroBase.h:20
Interface for yaw rate gyros.
Definition: Gyro.h:15
Definition: SendableBuilder.h:23
double PIDGet() override
Get the PIDOutput for the PIDSource base object.
Definition: GyroBase.cpp:21