@@ -26,27 +26,55 @@ class CommandBase : public Command,
2626 /* *
2727 * Adds the specified Subsystem requirements to the command.
2828 *
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+ *
2936 * @param requirements the Subsystem requirements to add
3037 */
3138 void AddRequirements (std::initializer_list<std::shared_ptr<Subsystem>> requirements);
3239
3340 /* *
3441 * Adds the specified Subsystem requirements to the command.
3542 *
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+ *
3650 * @param requirements the Subsystem requirements to add
3751 */
3852 void AddRequirements (std::span<std::shared_ptr<Subsystem>> requirements);
3953
4054 /* *
4155 * Adds the specified Subsystem requirements to the command.
4256 *
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+ *
4364 * @param requirements the Subsystem requirements to add
4465 */
4566 void AddRequirements (wpi::SmallSet<std::shared_ptr<Subsystem>, 4 > requirements);
4667
4768 /* *
4869 * Adds the specified Subsystem requirement to the command.
4970 *
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+ *
5078 * @param requirement the Subsystem requirement to add
5179 */
5280 void AddRequirements (std::shared_ptr<Subsystem> requirement);
0 commit comments