RIT VEXU Core API
Loading...
Searching...
No Matches
delay_command.h
1
7
8#pragma once
9
10#include "core/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
30 std::string toString() override{
31 return "Delaying for " + double_to_string(ms) + "ms";
32 }
33
34private:
35 // amount of milliseconds to wait
36 int ms;
37};
bool run() override
Definition delay_command.h:25
DelayCommand(int ms)
Definition delay_command.h:18