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
12class DelayCommand : public AutoCommand {
13public:
18 DelayCommand(int ms) : ms(ms) {}
19
25 bool run() override {
26 vexDelay(ms);
27 return true;
28 }
29
30private:
31 // amount of milliseconds to wait
32 int ms;
33};
Definition delay_command.h:12
bool run() override
Definition delay_command.h:25
DelayCommand(int ms)
Definition delay_command.h:18