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 "ErrorBase.h"
11 #include "PIDSource.h"
12 #include "SmartDashboard/SendableBase.h"
13 #include "interfaces/Gyro.h"
14 
15 namespace frc {
16 
21 class GyroBase : public Gyro,
22  public ErrorBase,
23  public SendableBase,
24  public PIDSource {
25  public:
26  // PIDSource interface
33  double PIDGet() override;
34 
35  void InitSendable(SendableBuilder& builder) override;
36 };
37 
38 } // namespace frc
Definition: Utility.cpp:119
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:26
Base class for most objects.
Definition: ErrorBase.h:74
GyroBase is the common base class for Gyro implementations such as AnalogGyro.
Definition: GyroBase.h:21
Definition: SendableBase.h:19
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:15