WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Controller.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008-2016. 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 
18 class Controller {
19  public:
20  virtual ~Controller() = default;
21 
25  virtual void Enable() = 0;
26 
31  virtual void Disable() = 0;
32 };
33 
34 } // namespace frc
Interface for Controllers.
Definition: Controller.h:18
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() ...