File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ void Subsystem::SetDefaultCommand(CommandPtr&& defaultCommand) {
2121 std::move (defaultCommand));
2222}
2323
24+ void Subsystem::RemoveDefaultCommand () {
25+ CommandScheduler::GetInstance ().RemoveDefaultCommand (this );
26+ }
27+
2428Command* Subsystem::GetDefaultCommand () const {
2529 return CommandScheduler::GetInstance ().GetDefaultCommand (this );
2630}
Original file line number Diff line number Diff line change @@ -83,6 +83,12 @@ class Subsystem {
8383 */
8484 void SetDefaultCommand (CommandPtr&& defaultCommand);
8585
86+ /* *
87+ * Removes the default command for the subsystem. This will not cancel the
88+ * default command if it is currently running.
89+ */
90+ void RemoveDefaultCommand ();
91+
8692 /* *
8793 * Gets the default command for this subsystem. Returns null if no default
8894 * command is currently associated with the subsystem.
You can’t perform that action at this time.
0 commit comments