Class CommandTunable

java.lang.Object
yams.commands3.telemetry.CommandTunable
All Implemented Interfaces:
org.wpilib.tunable.ComplexTunable

public class CommandTunable extends Object implements org.wpilib.tunable.ComplexTunable
Adapts an Command for publishing to NetworkTables via Tunables. Unlike org.wpilib.command2.Command, Command does not implement ComplexTunable itself, so this wrapper exposes a "running" boolean that schedules the command when set true and cancels it when set false.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommandTunable(org.wpilib.command3.Command command)
    Wrap a Command for publishing to NetworkTables.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    publishTunable(org.wpilib.tunable.TunableTable table)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.wpilib.tunable.ComplexTunable

    publishChildTunable, publishChildTunable, removeChildTunable, setChildTunableChanged, updateTunable
  • Constructor Details

    • CommandTunable

      public CommandTunable(org.wpilib.command3.Command command)
      Wrap a Command for publishing to NetworkTables.
      Parameters:
      command - Command to wrap.
  • Method Details

    • getTunableType

      public String getTunableType()
      Specified by:
      getTunableType in interface org.wpilib.tunable.ComplexTunable
    • publishTunable

      public void publishTunable(org.wpilib.tunable.TunableTable table)
      Specified by:
      publishTunable in interface org.wpilib.tunable.ComplexTunable