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