Class CommandTunable
java.lang.Object
yams.commands3.telemetry.CommandTunable
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionCommandTunable(org.wpilib.command3.Command command) Wrap aCommandfor publishing to NetworkTables. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wpilib.tunable.ComplexTunable
publishChildTunable, publishChildTunable, removeChildTunable, setChildTunableChanged, updateTunable
-
Constructor Details
-
CommandTunable
public CommandTunable(org.wpilib.command3.Command command) Wrap aCommandfor publishing to NetworkTables.- Parameters:
command-Commandto wrap.
-
-
Method Details
-
getTunableType
- Specified by:
getTunableTypein interfaceorg.wpilib.tunable.ComplexTunable
-
publishTunable
public void publishTunable(org.wpilib.tunable.TunableTable table) - Specified by:
publishTunablein interfaceorg.wpilib.tunable.ComplexTunable
-