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(std::shared_ptr<Command> defaultCommand) {
21
21
defaultCommand);
22
22
}
23
23
24
+ void Subsystem::RemoveDefaultCommand () {
25
+ CommandScheduler::GetInstance ().RemoveDefaultCommand (this );
26
+ }
27
+
24
28
std::shared_ptr<Command> Subsystem::GetDefaultCommand () {
25
29
return CommandScheduler::GetInstance ().GetDefaultCommand (this );
26
30
}
Original file line number Diff line number Diff line change @@ -79,6 +79,12 @@ class Subsystem {
79
79
*/
80
80
void SetDefaultCommand (std::shared_ptr<Command> defaultCommand);
81
81
82
+ /* *
83
+ * Removes the default command for the subsystem. This will not cancel the
84
+ * default command if it is currently running.
85
+ */
86
+ void RemoveDefaultCommand ();
87
+
82
88
/* *
83
89
* Gets the default command for this subsystem. Returns null if no default
84
90
* command is currently associated with the subsystem.
You can’t perform that action at this time.
0 commit comments