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 {
13 public:
18 DelayCommand(int ms) : ms(ms) {}
19
25 bool run() override {
26 vexDelay(ms);
27 return true;
28 }
29
30 std::string toString() override { return "Delaying for " + double_to_string(ms) + "ms"; }
31
32 private:
33 // amount of milliseconds to wait
34 int ms;
35};
bool run() override
Definition delay_command.h:25
DelayCommand(int ms)
Definition delay_command.h:18