mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Command::IsFinished() must be overriden by subclasses again (#353)
Documentation was added for InstantCommand and TimedCommand.
This commit is contained in:
committed by
Peter Johnson
parent
140c365e4b
commit
b25a7cb370
@@ -13,6 +13,10 @@
|
||||
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
* A {@link TimedCommand} will wait for a timeout before finishing.
|
||||
* {@link TimedCommand} is used to execute a command for a given amount of time.
|
||||
*/
|
||||
class TimedCommand : public Command {
|
||||
public:
|
||||
TimedCommand(const std::string& name, double timeout);
|
||||
@@ -20,7 +24,7 @@ class TimedCommand : public Command {
|
||||
virtual ~TimedCommand() = default;
|
||||
|
||||
protected:
|
||||
virtual bool IsFinished();
|
||||
bool IsFinished() override;
|
||||
};
|
||||
|
||||
} // namespace frc
|
||||
|
||||
Reference in New Issue
Block a user