Improve command decorator names (#1945)

This commit is contained in:
Oblarg
2019-10-19 11:13:33 -04:00
committed by Peter Johnson
parent a38f183a98
commit 53816155ba
18 changed files with 47 additions and 46 deletions

View File

@@ -122,7 +122,7 @@ class Command : public frc::ErrorBase {
* @param condition the interrupt condition
* @return the command with the interrupt condition added
*/
ParallelRaceGroup InterruptOn(std::function<bool()> condition) &&;
ParallelRaceGroup WithInterrupt(std::function<bool()> condition) &&;
/**
* Decorates this command with a runnable to run before this command starts.
@@ -138,7 +138,7 @@ class Command : public frc::ErrorBase {
* @param toRun the Runnable to run
* @return the decorated command
*/
SequentialCommandGroup WhenFinished(std::function<void()> toRun) &&;
SequentialCommandGroup AndThen(std::function<void()> toRun) &&;
/**
* Decorates this command to run perpetually, ignoring its ordinary end