mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Also added missing constructor to wpilibc's InstantCommand and renamed argument from requirement to subsystem as per https://github.com/wpilibsuite/allwpilib/pull/1275#issuecomment-416071940.
25 lines
1.0 KiB
C++
25 lines
1.0 KiB
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#include "frc/commands/TimedCommand.h"
|
|
|
|
using namespace frc;
|
|
|
|
TimedCommand::TimedCommand(const wpi::Twine& name, double timeout)
|
|
: Command(name, timeout) {}
|
|
|
|
TimedCommand::TimedCommand(double timeout) : Command(timeout) {}
|
|
|
|
TimedCommand::TimedCommand(const wpi::Twine& name, double timeout,
|
|
Subsystem& subsystem)
|
|
: Command(name, timeout, subsystem) {}
|
|
|
|
TimedCommand::TimedCommand(double timeout, Subsystem& subsystem)
|
|
: Command(timeout, subsystem) {}
|
|
|
|
bool TimedCommand::IsFinished() { return IsTimedOut(); }
|