blob: 45c0204f78494c6ba0ba35a7c73832816b8fbdad [file] [log] [blame]
Brian Silvermanf7f267a2017-02-04 16:16:08 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) FIRST 2011-2017. 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
10namespace frc {
11
12class Trigger;
13class Command;
14
15class ButtonScheduler {
16 public:
17 ButtonScheduler(bool last, Trigger* button, Command* orders);
18 virtual ~ButtonScheduler() = default;
19 virtual void Execute() = 0;
20 void Start();
21
22 protected:
23 bool m_pressedLast;
24 Trigger* m_button;
25 Command* m_command;
26};
27
28} // namespace frc