WPILibC++  2020.3.2
Controller.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2008-2019 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 
21 class Controller {
22  public:
23  WPI_DEPRECATED("None of the 2020 FRC controllers use this.")
24  Controller() = default;
25  virtual ~Controller() = default;
26 
27  Controller(Controller&&) = default;
28  Controller& operator=(Controller&&) = default;
29 
33  virtual void Enable() = 0;
34 
39  virtual void Disable() = 0;
40 };
41 
42 } // 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:21
frc
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16