WPILibC++  2020.3.2-60-g3011ebe
Controller.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2020 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 <wpi/deprecated.h>
11 
12 namespace frc {
13 
23 class Controller {
24  public:
25  WPI_DEPRECATED("Only used by the deprecated PIDController")
26  Controller() = default;
27  virtual ~Controller() = default;
28 
29  Controller(Controller&&) = default;
30  Controller& operator=(Controller&&) = default;
31 
35  virtual void Enable() = 0;
36 
41  virtual void Disable() = 0;
42 };
43 
44 } // namespace frc
frc::Controller::Enable
virtual void Enable()=0
Allows the control loop to run.
frc::Controller::Disable
virtual void Disable()=0
Stops the control loop from running until explicitly re-enabled by calling enable()
frc::Controller
Interface for Controllers.
Definition: Controller.h:23
frc
A class that enforces constraints on the differential drive kinematics.
Definition: PDPSim.h:16