@@ -88,6 +88,10 @@ class CommandScheduler final : public wpi::Sendable,
8888 * interruptible. If this is the case, they will be interrupted and the
8989 * command will be scheduled.
9090 *
91+ * @warning Using this function directly can often lead to unexpected behavior
92+ * and should be avoided. Instead Triggers should be used to schedule
93+ * Commands.
94+ *
9195 * @param command the command to schedule
9296 */
9397 void Schedule (const CommandPtr& command);
@@ -112,6 +116,10 @@ class CommandScheduler final : public wpi::Sendable,
112116 *
113117 * The pointer must remain valid through the entire lifecycle of the command.
114118 *
119+ * @warning Using this function directly can often lead to unexpected behavior
120+ * and should be avoided. Instead Triggers should be used to schedule
121+ * Commands.
122+ *
115123 * @param command the command to schedule
116124 */
117125 void Schedule (Command* command);
@@ -120,6 +128,10 @@ class CommandScheduler final : public wpi::Sendable,
120128 * Schedules multiple commands for execution. Does nothing for commands
121129 * already scheduled.
122130 *
131+ * @warning Using this function directly can often lead to unexpected behavior
132+ * and should be avoided. Instead Triggers should be used to schedule
133+ * Commands.
134+ *
123135 * @param commands the commands to schedule
124136 */
125137 void Schedule (std::span<Command* const > commands);
@@ -128,6 +140,10 @@ class CommandScheduler final : public wpi::Sendable,
128140 * Schedules multiple commands for execution. Does nothing for commands
129141 * already scheduled.
130142 *
143+ * @warning Using this function directly can often lead to unexpected behavior
144+ * and should be avoided. Instead Triggers should be used to schedule
145+ * Commands.
146+ *
131147 * @param commands the commands to schedule
132148 */
133149 void Schedule (std::initializer_list<Command*> commands);
0 commit comments