@@ -26,27 +26,55 @@ class CommandBase : public Command,
26
26
/* *
27
27
* Adds the specified Subsystem requirements to the command.
28
28
*
29
+ * The scheduler will prevent two commands that require the same subsystem
30
+ * from being scheduled simultaneously.
31
+ *
32
+ * Note that the scheduler determines the requirements of a command when it
33
+ * is scheduled, so this method should normally be called from the command's
34
+ * constructor.
35
+ *
29
36
* @param requirements the Subsystem requirements to add
30
37
*/
31
38
void AddRequirements (std::initializer_list<std::shared_ptr<Subsystem>> requirements);
32
39
33
40
/* *
34
41
* Adds the specified Subsystem requirements to the command.
35
42
*
43
+ * The scheduler will prevent two commands that require the same subsystem
44
+ * from being scheduled simultaneously.
45
+ *
46
+ * Note that the scheduler determines the requirements of a command when it
47
+ * is scheduled, so this method should normally be called from the command's
48
+ * constructor.
49
+ *
36
50
* @param requirements the Subsystem requirements to add
37
51
*/
38
52
void AddRequirements (std::span<std::shared_ptr<Subsystem>> requirements);
39
53
40
54
/* *
41
55
* Adds the specified Subsystem requirements to the command.
42
56
*
57
+ * The scheduler will prevent two commands that require the same subsystem
58
+ * from being scheduled simultaneously.
59
+ *
60
+ * Note that the scheduler determines the requirements of a command when it
61
+ * is scheduled, so this method should normally be called from the command's
62
+ * constructor.
63
+ *
43
64
* @param requirements the Subsystem requirements to add
44
65
*/
45
66
void AddRequirements (wpi::SmallSet<std::shared_ptr<Subsystem>, 4 > requirements);
46
67
47
68
/* *
48
69
* Adds the specified Subsystem requirement to the command.
49
70
*
71
+ * The scheduler will prevent two commands that require the same subsystem
72
+ * from being scheduled simultaneously.
73
+ *
74
+ * Note that the scheduler determines the requirements of a command when it
75
+ * is scheduled, so this method should normally be called from the command's
76
+ * constructor.
77
+ *
50
78
* @param requirement the Subsystem requirement to add
51
79
*/
52
80
void AddRequirements (std::shared_ptr<Subsystem> requirement);
0 commit comments