WPILibC++  unspecified
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
ButtonScheduler.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2011-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 #ifndef __BUTTON_SCHEDULER_H__
9 #define __BUTTON_SCHEDULER_H__
10 
11 class Trigger;
12 class Command;
13 
15  public:
16  ButtonScheduler(bool last, Trigger *button, Command *orders);
17  virtual ~ButtonScheduler() = default;
18  virtual void Execute() = 0;
19  void Start();
20 
21  protected:
22  bool m_pressedLast;
23  Trigger *m_button;
24  Command *m_command;
25 };
26 
27 #endif
Definition: ButtonScheduler.h:14
The Command class is at the very core of the entire command framework.
Definition: Command.h:54
This class provides an easy way to link commands to inputs.
Definition: Trigger.h:33