RIT VEXU Core API
Loading...
Searching...
No Matches
delay_command.h
1
8
#pragma once
9
10
#include "../core/include/utils/command_structure/auto_command.h"
11
12
class
DelayCommand
:
public
AutoCommand {
13
public
:
18
DelayCommand
(
int
ms) : ms(ms) {}
19
25
bool
run
()
override
{
26
vexDelay(ms);
27
return
true
;
28
}
29
30
private
:
31
// amount of milliseconds to wait
32
int
ms;
33
};
DelayCommand
Definition
delay_command.h:12
DelayCommand::run
bool run() override
Definition
delay_command.h:25
DelayCommand::DelayCommand
DelayCommand(int ms)
Definition
delay_command.h:18
include
utils
command_structure
delay_command.h
Generated by
1.10.0