|
|
| StartCommand (Command *commandToStart) |
| |
|
| StartCommand (StartCommand &&)=default |
| |
|
StartCommand & | operator= (StartCommand &&)=default |
| |
Public Member Functions inherited from frc::InstantCommand |
| | InstantCommand (const wpi::Twine &name) |
| | Creates a new InstantCommand with the given name. More...
|
| |
| | InstantCommand (Subsystem &subsystem) |
| | Creates a new InstantCommand with the given requirement. More...
|
| |
| | InstantCommand (const wpi::Twine &name, Subsystem &subsystem) |
| | Creates a new InstantCommand with the given name. More...
|
| |
| | InstantCommand (std::function< void()> func) |
| | Create a command that calls the given function when run. More...
|
| |
| | InstantCommand (Subsystem &subsystem, std::function< void()> func) |
| | Create a command that calls the given function when run. More...
|
| |
| | InstantCommand (const wpi::Twine &name, std::function< void()> func) |
| | Create a command that calls the given function when run. More...
|
| |
| | InstantCommand (const wpi::Twine &name, Subsystem &subsystem, std::function< void()> func) |
| | Create a command that calls the given function when run. More...
|
| |
|
| InstantCommand (InstantCommand &&)=default |
| |
|
InstantCommand & | operator= (InstantCommand &&)=default |
| |
Public Member Functions inherited from frc::Command |
| | Command () |
| | Creates a new command. More...
|
| |
| | Command (const wpi::Twine &name) |
| | Creates a new command with the given name and no timeout. More...
|
| |
| | Command (double timeout) |
| | Creates a new command with the given timeout and a default name. More...
|
| |
| | Command (Subsystem &subsystem) |
| | Creates a new command with the given timeout and a default name. More...
|
| |
| | Command (const wpi::Twine &name, double timeout) |
| | Creates a new command with the given name and timeout. More...
|
| |
| | Command (const wpi::Twine &name, Subsystem &subsystem) |
| | Creates a new command with the given name and timeout. More...
|
| |
| | Command (double timeout, Subsystem &subsystem) |
| | Creates a new command with the given name and timeout. More...
|
| |
| | Command (const wpi::Twine &name, double timeout, Subsystem &subsystem) |
| | Creates a new command with the given name and timeout. More...
|
| |
|
| Command (Command &&)=default |
| |
|
Command & | operator= (Command &&)=default |
| |
| double | TimeSinceInitialized () const |
| | Returns the time since this command was initialized (in seconds). More...
|
| |
| void | Requires (Subsystem *s) |
| | This method specifies that the given Subsystem is used by this command. More...
|
| |
| void | Start () |
| | Starts up the command. More...
|
| |
| bool | Run () |
| | The run method is used internally to actually run the commands. More...
|
| |
| void | Cancel () |
| | This will cancel the current command. More...
|
| |
| bool | IsRunning () const |
| | Returns whether or not the command is running. More...
|
| |
| bool | IsInitialized () const |
| | Returns whether or not the command has been initialized. More...
|
| |
| bool | IsCompleted () const |
| | Returns whether or not the command has completed running. More...
|
| |
| bool | IsCanceled () const |
| | Returns whether or not this has been canceled. More...
|
| |
| bool | IsInterruptible () const |
| | Returns whether or not this command can be interrupted. More...
|
| |
| void | SetInterruptible (bool interruptible) |
| | Sets whether or not this command can be interrupted. More...
|
| |
| bool | DoesRequire (Subsystem *subsystem) const |
| | Checks if the command requires the given Subsystem. More...
|
| |
| const SubsystemSet & | GetRequirements () const |
| | Returns the requirements (as an std::set of Subsystem pointers) of this command. More...
|
| |
| CommandGroup * | GetGroup () const |
| | Returns the CommandGroup that this command is a part of. More...
|
| |
| void | SetRunWhenDisabled (bool run) |
| | Sets whether or not this Command should run when the robot is disabled. More...
|
| |
| bool | WillRunWhenDisabled () const |
| | Returns whether or not this Command will run when the robot is disabled, or if it will cancel itself. More...
|
| |
| int | GetID () const |
| | Get the ID (sequence number) for this command. More...
|
| |
| std::string | GetName () const |
| | Gets the name of this Command. More...
|
| |
| void | SetName (const wpi::Twine &name) |
| | Sets the name of this Command. More...
|
| |
| std::string | GetSubsystem () const |
| | Gets the subsystem name of this Command. More...
|
| |
| void | SetSubsystem (const wpi::Twine &subsystem) |
| | Sets the subsystem name of this Command. More...
|
| |
| void | InitSendable (SendableBuilder &builder) override |
| | Initializes this Sendable object. More...
|
| |
|
| ErrorBase (const ErrorBase &)=default |
| |
|
ErrorBase & | operator= (const ErrorBase &)=default |
| |
|
| ErrorBase (ErrorBase &&)=default |
| |
|
ErrorBase & | operator= (ErrorBase &&)=default |
| |
| virtual Error & | GetError () |
| | Retrieve the current error. More...
|
| |
| virtual const Error & | GetError () const |
| | Retrieve the current error. More...
|
| |
|
virtual void | ClearError () const |
| | Clear the current error information associated with this sensor.
|
| |
| virtual void | SetErrnoError (const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set error information associated with a C library call that set an error to the "errno" global variable. More...
|
| |
| virtual void | SetImaqError (int success, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated from the nivision Imaq API. More...
|
| |
| virtual void | SetError (Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
| virtual void | SetErrorRange (Error::Code code, int32_t minRange, int32_t maxRange, int32_t requestedValue, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
| virtual void | SetWPIError (const wpi::Twine &errorMessage, Error::Code code, const wpi::Twine &contextMessage, wpi::StringRef filename, wpi::StringRef function, int lineNumber) const |
| | Set the current error information associated with this sensor. More...
|
| |
|
virtual void | CloneError (const ErrorBase &rhs) const |
| |
| virtual bool | StatusIsFatal () const |
| | Check if the current error code represents a fatal error. More...
|
| |
|
void | ClearGlobalErrors () |
| | Clear global errors.
|
| |
|
| SendableHelper (const SendableHelper &rhs)=default |
| |
|
| SendableHelper (SendableHelper &&rhs) |
| |
|
SendableHelper & | operator= (const SendableHelper &rhs)=default |
| |
|
SendableHelper & | operator= (SendableHelper &&rhs) |
| |
| std::string | GetName () const |
| | Gets the name of this Sendable object. More...
|
| |
| void | SetName (const wpi::Twine &name) |
| | Sets the name of this Sendable object. More...
|
| |
| void | SetName (const wpi::Twine &subsystem, const wpi::Twine &name) |
| | Sets both the subsystem name and device name of this Sendable object. More...
|
| |
| std::string | GetSubsystem () const |
| | Gets the subsystem name of this Sendable object. More...
|
| |
| void | SetSubsystem (const wpi::Twine &subsystem) |
| | Sets the subsystem name of this Sendable object. More...
|
| |
|
|
virtual void | Initialize () |
| | The initialize method is called the first time this Command is run after being started.
|
| |
Protected Member Functions inherited from frc::InstantCommand |
|
void | _Initialize () override |
| |
| bool | IsFinished () override |
| | Returns whether this command is finished. More...
|
| |
Protected Member Functions inherited from frc::Command |
| void | SetTimeout (double timeout) |
| | Sets the timeout of this command. More...
|
| |
| bool | IsTimedOut () const |
| | Returns whether or not the TimeSinceInitialized() method returns a number which is greater than or equal to the timeout for the command. More...
|
| |
| bool | AssertUnlocked (const std::string &message) |
| | If changes are locked, then this will generate a CommandIllegalUse error. More...
|
| |
| void | SetParent (CommandGroup *parent) |
| | Sets the parent of this command. More...
|
| |
| bool | IsParented () const |
| | Returns whether the command has a parent. More...
|
| |
| void | ClearRequirements () |
| | Clears list of subsystem requirements. More...
|
| |
|
virtual void | Execute () |
| | The execute method is called repeatedly until this Command either finishes or is canceled.
|
| |
| virtual void | End () |
| | Called when the command ended peacefully. More...
|
| |
| virtual void | Interrupted () |
| | Called when the command ends because somebody called Cancel() or another command shared the same requirements as this one, and booted it out. More...
|
| |
|
virtual void | _Interrupted () |
| |
|
virtual void | _Execute () |
| |
|
virtual void | _End () |
| |
| virtual void | _Cancel () |
| | This works like Cancel(), except that it doesn't throw an exception if it is a part of a command group. More...
|
| |
| void | SetName (const wpi::Twine &moduleType, int channel) |
| | Sets the name of the sensor with a channel number. More...
|
| |
| void | SetName (const wpi::Twine &moduleType, int moduleNumber, int channel) |
| | Sets the name of the sensor with a module and channel number. More...
|
| |
| void | AddChild (std::shared_ptr< Sendable > child) |
| | Add a child component. More...
|
| |
| void | AddChild (void *child) |
| | Add a child component. More...
|
| |