Class SetTargetCommand<TargetT>

Type Parameters:
TargetT - The type of the target value.
All Implemented Interfaces:
Sendable, IPropertySupport

public class SetTargetCommand<TargetT> extends BaseSetpointCommand
A command that sets a target value on a BaseSetpointSubsystem.
  • Field Details

  • Constructor Details

    • SetTargetCommand

      public SetTargetCommand(BaseSetpointSubsystem<TargetT,?> system)
      Creates a new SetTargetCommand.
      Parameters:
      system - The BaseSetpointSubsystem to set the target value on.
  • Method Details

    • setTargetValue

      public void setTargetValue(TargetT value)
      Sets the target value to be applied when the command is initialized.
      Parameters:
      value - The target value to set.
    • initialize

      public void initialize()
      Overrides:
      initialize in class BaseCommand
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class BaseSetpointCommand