WPILibC++
2018.4.1-20180729133221-1141-g00c2cd7
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
ButtonScheduler.h
1
/*----------------------------------------------------------------------------*/
2
/* Copyright (c) 2011-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
12
class
Trigger;
13
class
Command;
14
15
class
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
frc
Definition:
SPIAccelerometerSim.h:18
frc::ButtonScheduler
Definition:
ButtonScheduler.h:15
frc::Command
The Command class is at the very core of the entire command framework.
Definition:
Command.h:48
frc::Trigger
This class provides an easy way to link commands to inputs.
Definition:
Trigger.h:31
wpilibc
src
main
native
include
frc
buttons
ButtonScheduler.h
Generated on Sun Jul 29 2018 13:33:24 for WPILibC++ by
1.8.8