WPILibC++  2019.1.1-beta-1-15-gd03b020
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Controller.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 namespace frc {
11 
19 class Controller {
20  public:
21  Controller() = default;
22  virtual ~Controller() = default;
23 
24  Controller(Controller&&) = default;
25  Controller& operator=(Controller&&) = default;
26 
30  virtual void Enable() = 0;
31 
36  virtual void Disable() = 0;
37 };
38 
39 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Interface for Controllers.
Definition: Controller.h:19
virtual void Enable()=0
Allows the control loop to run.
virtual void Disable()=0
Stops the control loop from running until explicitly re-enabled by calling enable() ...