From ceb712b089d77efd26e09421e1af2e5ee81b64e7 Mon Sep 17 00:00:00 2001 From: sciencewhiz Date: Sun, 29 Mar 2026 20:40:36 -0700 Subject: [PATCH] [docs] Change NewCommands to Commands v2 (NFC) (#8702) --- commandsv2/src/main/java/org/wpilib/command2/Command.java | 2 +- .../src/main/java/org/wpilib/command2/CommandScheduler.java | 2 +- .../src/main/java/org/wpilib/command2/ConditionalCommand.java | 2 +- .../src/main/java/org/wpilib/command2/DeferredCommand.java | 2 +- .../src/main/java/org/wpilib/command2/FunctionalCommand.java | 2 +- .../src/main/java/org/wpilib/command2/InstantCommand.java | 2 +- .../src/main/java/org/wpilib/command2/NotifierCommand.java | 2 +- .../src/main/java/org/wpilib/command2/ParallelCommandGroup.java | 2 +- .../main/java/org/wpilib/command2/ParallelDeadlineGroup.java | 2 +- .../src/main/java/org/wpilib/command2/ParallelRaceGroup.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/PrintCommand.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/ProxyCommand.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/RepeatCommand.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/RunCommand.java | 2 +- .../src/main/java/org/wpilib/command2/ScheduleCommand.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/SelectCommand.java | 2 +- .../main/java/org/wpilib/command2/SequentialCommandGroup.java | 2 +- .../src/main/java/org/wpilib/command2/StartEndCommand.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/Subsystem.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/SubsystemBase.java | 2 +- commandsv2/src/main/java/org/wpilib/command2/WaitCommand.java | 2 +- .../src/main/java/org/wpilib/command2/WaitUntilCommand.java | 2 +- .../src/main/java/org/wpilib/command2/button/GamepadButton.java | 2 +- .../main/java/org/wpilib/command2/button/InternalButton.java | 2 +- .../main/java/org/wpilib/command2/button/JoystickButton.java | 2 +- .../src/main/java/org/wpilib/command2/button/NetworkButton.java | 2 +- .../src/main/java/org/wpilib/command2/button/POVButton.java | 2 +- .../src/main/java/org/wpilib/command2/button/Trigger.java | 2 +- commandsv2/src/main/native/include/wpi/commands2/Command.hpp | 2 +- .../src/main/native/include/wpi/commands2/CommandHelper.hpp | 2 +- .../src/main/native/include/wpi/commands2/CommandScheduler.hpp | 2 +- .../main/native/include/wpi/commands2/ConditionalCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/DeferredCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/FunctionalCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/InstantCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/NotifierCommand.hpp | 2 +- .../main/native/include/wpi/commands2/ParallelCommandGroup.hpp | 2 +- .../main/native/include/wpi/commands2/ParallelDeadlineGroup.hpp | 2 +- .../src/main/native/include/wpi/commands2/ParallelRaceGroup.hpp | 2 +- .../src/main/native/include/wpi/commands2/PrintCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/ProxyCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/RepeatCommand.hpp | 2 +- commandsv2/src/main/native/include/wpi/commands2/RunCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/ScheduleCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/SelectCommand.hpp | 2 +- .../native/include/wpi/commands2/SequentialCommandGroup.hpp | 2 +- .../src/main/native/include/wpi/commands2/StartEndCommand.hpp | 2 +- commandsv2/src/main/native/include/wpi/commands2/Subsystem.hpp | 2 +- .../src/main/native/include/wpi/commands2/SubsystemBase.hpp | 2 +- .../src/main/native/include/wpi/commands2/WaitCommand.hpp | 2 +- .../src/main/native/include/wpi/commands2/WaitUntilCommand.hpp | 2 +- .../main/native/include/wpi/commands2/button/GamepadButton.hpp | 2 +- .../main/native/include/wpi/commands2/button/JoystickButton.hpp | 2 +- .../main/native/include/wpi/commands2/button/NetworkButton.hpp | 2 +- .../src/main/native/include/wpi/commands2/button/POVButton.hpp | 2 +- .../src/main/native/include/wpi/commands2/button/Trigger.hpp | 2 +- .../src/main/native/include/wpi/event/NetworkBooleanEvent.hpp | 2 -- 57 files changed, 56 insertions(+), 58 deletions(-) diff --git a/commandsv2/src/main/java/org/wpilib/command2/Command.java b/commandsv2/src/main/java/org/wpilib/command2/Command.java index 05547c3d99..30ba763c0b 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/Command.java +++ b/commandsv2/src/main/java/org/wpilib/command2/Command.java @@ -26,7 +26,7 @@ import org.wpilib.util.sendable.SendableRegistry; *

Commands are run synchronously from the main robot loop; no multithreading is used, unless * specified explicitly from the command implementation. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ @NoDiscard("Commands must be used! Did you mean to bind it to a trigger?") public abstract class Command implements Sendable { diff --git a/commandsv2/src/main/java/org/wpilib/command2/CommandScheduler.java b/commandsv2/src/main/java/org/wpilib/command2/CommandScheduler.java index a9cf2c8aba..761f67e595 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/CommandScheduler.java +++ b/commandsv2/src/main/java/org/wpilib/command2/CommandScheduler.java @@ -40,7 +40,7 @@ import org.wpilib.util.sendable.SendableRegistry; * CommandScheduler#registerSubsystem(Subsystem...)} in order for their {@link Subsystem#periodic()} * methods to be called and for their default commands to be scheduled. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public final class CommandScheduler implements Sendable, AutoCloseable { /** The Singleton Instance. */ diff --git a/commandsv2/src/main/java/org/wpilib/command2/ConditionalCommand.java b/commandsv2/src/main/java/org/wpilib/command2/ConditionalCommand.java index 31de47cce5..b4009339ec 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ConditionalCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ConditionalCommand.java @@ -17,7 +17,7 @@ import org.wpilib.util.sendable.SendableBuilder; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ConditionalCommand extends Command { private final Command m_onTrue; diff --git a/commandsv2/src/main/java/org/wpilib/command2/DeferredCommand.java b/commandsv2/src/main/java/org/wpilib/command2/DeferredCommand.java index da4b265875..f24babff8a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/DeferredCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/DeferredCommand.java @@ -18,7 +18,7 @@ import org.wpilib.util.sendable.SendableBuilder; *

Note that the supplier must create a new Command each call. For selecting one of a * preallocated set of commands, use {@link SelectCommand}. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class DeferredCommand extends Command { private final Command m_nullCommand = diff --git a/commandsv2/src/main/java/org/wpilib/command2/FunctionalCommand.java b/commandsv2/src/main/java/org/wpilib/command2/FunctionalCommand.java index 77cdc60979..15301daa0a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/FunctionalCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/FunctionalCommand.java @@ -15,7 +15,7 @@ import java.util.function.Consumer; * command is beyond a certain complexity it is usually better practice to write a proper class for * it than to inline it. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class FunctionalCommand extends Command { private final Runnable m_onInit; diff --git a/commandsv2/src/main/java/org/wpilib/command2/InstantCommand.java b/commandsv2/src/main/java/org/wpilib/command2/InstantCommand.java index 966cc18588..2672fe7ae4 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/InstantCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/InstantCommand.java @@ -9,7 +9,7 @@ package org.wpilib.command2; * the scheduler. Users can either pass in a Runnable and a set of requirements, or else subclass * this command if desired. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class InstantCommand extends FunctionalCommand { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/NotifierCommand.java b/commandsv2/src/main/java/org/wpilib/command2/NotifierCommand.java index ae5b0a9951..b8e558ecef 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/NotifierCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/NotifierCommand.java @@ -15,7 +15,7 @@ import org.wpilib.system.Notifier; * code thread-safe. If you do not know what "thread-safe" means, that is a good sign that you * should not use this class. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class NotifierCommand extends Command { private final Notifier m_notifier; diff --git a/commandsv2/src/main/java/org/wpilib/command2/ParallelCommandGroup.java b/commandsv2/src/main/java/org/wpilib/command2/ParallelCommandGroup.java index 24f03e28df..237bb80a76 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ParallelCommandGroup.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ParallelCommandGroup.java @@ -15,7 +15,7 @@ import java.util.Map; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ParallelCommandGroup extends Command { // maps commands in this composition to whether they are still running diff --git a/commandsv2/src/main/java/org/wpilib/command2/ParallelDeadlineGroup.java b/commandsv2/src/main/java/org/wpilib/command2/ParallelDeadlineGroup.java index e8baf2c9aa..272d780f4a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ParallelDeadlineGroup.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ParallelDeadlineGroup.java @@ -18,7 +18,7 @@ import org.wpilib.util.sendable.SendableBuilder; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ParallelDeadlineGroup extends Command { // maps commands in this composition to whether they are still running diff --git a/commandsv2/src/main/java/org/wpilib/command2/ParallelRaceGroup.java b/commandsv2/src/main/java/org/wpilib/command2/ParallelRaceGroup.java index 8c3d81817f..51714bc31c 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ParallelRaceGroup.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ParallelRaceGroup.java @@ -16,7 +16,7 @@ import java.util.Set; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ParallelRaceGroup extends Command { // LinkedHashSet guarantees we iterate over commands in the order they were added diff --git a/commandsv2/src/main/java/org/wpilib/command2/PrintCommand.java b/commandsv2/src/main/java/org/wpilib/command2/PrintCommand.java index 39a7e26bbd..8483083a15 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/PrintCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/PrintCommand.java @@ -7,7 +7,7 @@ package org.wpilib.command2; /** * A command that prints a string when initialized. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class PrintCommand extends InstantCommand { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/ProxyCommand.java b/commandsv2/src/main/java/org/wpilib/command2/ProxyCommand.java index 143902aa8d..ab60641c27 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ProxyCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ProxyCommand.java @@ -18,7 +18,7 @@ import org.wpilib.util.sendable.SendableBuilder; * from a subsystem already required by the composition, or else the composition will cancel itself * when the proxy is reached. If this command is interrupted, it will cancel the command. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ProxyCommand extends Command { private final Supplier m_supplier; diff --git a/commandsv2/src/main/java/org/wpilib/command2/RepeatCommand.java b/commandsv2/src/main/java/org/wpilib/command2/RepeatCommand.java index bf4b6b400f..251871c892 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/RepeatCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/RepeatCommand.java @@ -17,7 +17,7 @@ import org.wpilib.util.sendable.SendableBuilder; * added to any other composition or scheduled individually,and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class RepeatCommand extends Command { private final Command m_command; diff --git a/commandsv2/src/main/java/org/wpilib/command2/RunCommand.java b/commandsv2/src/main/java/org/wpilib/command2/RunCommand.java index aa2c523979..8477db56cc 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/RunCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/RunCommand.java @@ -11,7 +11,7 @@ import java.util.function.BooleanSupplier; * use {@link Command#withTimeout(double)} or {@link Command#until(BooleanSupplier)} to give it one. * If you only wish to execute a Runnable once, use {@link InstantCommand}. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class RunCommand extends FunctionalCommand { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/ScheduleCommand.java b/commandsv2/src/main/java/org/wpilib/command2/ScheduleCommand.java index db44261869..8cb9be1113 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/ScheduleCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/ScheduleCommand.java @@ -11,7 +11,7 @@ import java.util.Set; * CommandGroups. Note that if run from a composition, the composition will not know about the * status of the scheduled commands, and will treat this command as finishing instantly. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class ScheduleCommand extends Command { private final Set m_toSchedule; diff --git a/commandsv2/src/main/java/org/wpilib/command2/SelectCommand.java b/commandsv2/src/main/java/org/wpilib/command2/SelectCommand.java index 4f9dd48d85..c06b3a0a4a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/SelectCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/SelectCommand.java @@ -18,7 +18,7 @@ import org.wpilib.util.sendable.SendableBuilder; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep * * @param The type of key used to select the command */ diff --git a/commandsv2/src/main/java/org/wpilib/command2/SequentialCommandGroup.java b/commandsv2/src/main/java/org/wpilib/command2/SequentialCommandGroup.java index 1922321e0b..47eb6e8a86 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/SequentialCommandGroup.java +++ b/commandsv2/src/main/java/org/wpilib/command2/SequentialCommandGroup.java @@ -15,7 +15,7 @@ import org.wpilib.util.sendable.SendableBuilder; * added to any other composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class SequentialCommandGroup extends Command { private final List m_commands = new ArrayList<>(); diff --git a/commandsv2/src/main/java/org/wpilib/command2/StartEndCommand.java b/commandsv2/src/main/java/org/wpilib/command2/StartEndCommand.java index ede00ab0b7..1914f4629a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/StartEndCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/StartEndCommand.java @@ -14,7 +14,7 @@ import java.util.function.Consumer; * end condition as-is; either subclass it or use {@link Command#withTimeout(double)} or {@link * Command#until(java.util.function.BooleanSupplier)} to give it one. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class StartEndCommand extends FunctionalCommand { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/Subsystem.java b/commandsv2/src/main/java/org/wpilib/command2/Subsystem.java index 4ae2b8a71f..c5829db4d3 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/Subsystem.java +++ b/commandsv2/src/main/java/org/wpilib/command2/Subsystem.java @@ -22,7 +22,7 @@ import java.util.function.Supplier; * constructor of users' Subsystem implementations. The {@link SubsystemBase} class offers a simple * base for user implementations that handles this. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public interface Subsystem { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/SubsystemBase.java b/commandsv2/src/main/java/org/wpilib/command2/SubsystemBase.java index 2c6c57a103..08fbdef168 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/SubsystemBase.java +++ b/commandsv2/src/main/java/org/wpilib/command2/SubsystemBase.java @@ -12,7 +12,7 @@ import org.wpilib.util.sendable.SendableRegistry; * A base for subsystems that handles registration in the constructor, and provides a more intuitive * method for setting the default command. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public abstract class SubsystemBase implements Subsystem, Sendable { /** Constructor. Telemetry/log name defaults to the classname. */ diff --git a/commandsv2/src/main/java/org/wpilib/command2/WaitCommand.java b/commandsv2/src/main/java/org/wpilib/command2/WaitCommand.java index 191f93ebc5..9fec1ec0a7 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/WaitCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/WaitCommand.java @@ -14,7 +14,7 @@ import org.wpilib.util.sendable.SendableRegistry; /** * A command that does nothing but takes a specified amount of time to finish. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class WaitCommand extends Command { /** The timer used for waiting. */ diff --git a/commandsv2/src/main/java/org/wpilib/command2/WaitUntilCommand.java b/commandsv2/src/main/java/org/wpilib/command2/WaitUntilCommand.java index 6ec08cb4bb..6e8606df30 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/WaitUntilCommand.java +++ b/commandsv2/src/main/java/org/wpilib/command2/WaitUntilCommand.java @@ -13,7 +13,7 @@ import org.wpilib.system.Timer; * A command that does nothing but ends after a specified match time or condition. Useful for * CommandGroups. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class WaitUntilCommand extends Command { private final BooleanSupplier m_condition; diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/GamepadButton.java b/commandsv2/src/main/java/org/wpilib/command2/button/GamepadButton.java index f69f46e971..b4dea54c37 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/GamepadButton.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/GamepadButton.java @@ -11,7 +11,7 @@ import org.wpilib.driverstation.Gamepad; /** * A {@link Trigger} that gets its state from a {@link Gamepad}. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class GamepadButton extends Trigger { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/InternalButton.java b/commandsv2/src/main/java/org/wpilib/command2/button/InternalButton.java index b0e0f4f5a5..cfc08a145a 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/InternalButton.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/InternalButton.java @@ -10,7 +10,7 @@ import java.util.concurrent.atomic.AtomicBoolean; * This class is intended to be used within a program. The programmer can manually set its value. * Also includes a setting for whether it should invert its value. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class InternalButton extends Trigger { // need to be references, so they can be mutated after being captured in the constructor. diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/JoystickButton.java b/commandsv2/src/main/java/org/wpilib/command2/button/JoystickButton.java index 02f54a4000..94c18f629d 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/JoystickButton.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/JoystickButton.java @@ -11,7 +11,7 @@ import org.wpilib.driverstation.GenericHID; /** * A {@link Trigger} that gets its state from a {@link GenericHID}. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class JoystickButton extends Trigger { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/NetworkButton.java b/commandsv2/src/main/java/org/wpilib/command2/button/NetworkButton.java index 9a9b2460b5..1e7880b4ba 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/NetworkButton.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/NetworkButton.java @@ -14,7 +14,7 @@ import org.wpilib.networktables.NetworkTableInstance; /** * A {@link Trigger} that uses a {@link NetworkTable} boolean field. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class NetworkButton extends Trigger { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/POVButton.java b/commandsv2/src/main/java/org/wpilib/command2/button/POVButton.java index 64a7068472..5727710406 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/POVButton.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/POVButton.java @@ -12,7 +12,7 @@ import org.wpilib.driverstation.GenericHID; /** * A {@link Trigger} that gets its state from a POV on a {@link GenericHID}. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class POVButton extends Trigger { /** diff --git a/commandsv2/src/main/java/org/wpilib/command2/button/Trigger.java b/commandsv2/src/main/java/org/wpilib/command2/button/Trigger.java index 410a90ed61..cf0980b8b0 100644 --- a/commandsv2/src/main/java/org/wpilib/command2/button/Trigger.java +++ b/commandsv2/src/main/java/org/wpilib/command2/button/Trigger.java @@ -22,7 +22,7 @@ import org.wpilib.math.filter.EdgeCounterFilter; *

Triggers can easily be composed for advanced functionality using the {@link * #and(BooleanSupplier)}, {@link #or(BooleanSupplier)}, {@link #negate()} operators. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ public class Trigger implements BooleanSupplier { /** Functional interface for the body of a trigger binding. */ diff --git a/commandsv2/src/main/native/include/wpi/commands2/Command.hpp b/commandsv2/src/main/native/include/wpi/commands2/Command.hpp index 41adcb07d5..be31868600 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/Command.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/Command.hpp @@ -32,7 +32,7 @@ namespace wpi::cmd { *

Note: ALWAYS create a subclass by extending CommandHelper, * or decorators will not function! * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see CommandScheduler * @see CommandHelper diff --git a/commandsv2/src/main/native/include/wpi/commands2/CommandHelper.hpp b/commandsv2/src/main/native/include/wpi/commands2/CommandHelper.hpp index 9522a2ef2a..26345d1df6 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/CommandHelper.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/CommandHelper.hpp @@ -19,7 +19,7 @@ namespace wpi::cmd { *

Note: ALWAYS create a subclass by extending CommandHelper, * or decorators will not function! * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ template Base, typename CRTP> class CommandHelper : public Base { diff --git a/commandsv2/src/main/native/include/wpi/commands2/CommandScheduler.hpp b/commandsv2/src/main/native/include/wpi/commands2/CommandScheduler.hpp index 9c9c626af6..defc554e75 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/CommandScheduler.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/CommandScheduler.hpp @@ -32,7 +32,7 @@ class Subsystem; * with the scheduler using RegisterSubsystem() in order for their Periodic() * methods to be called and for their default commands to be scheduled. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class CommandScheduler final : public wpi::util::Sendable, diff --git a/commandsv2/src/main/native/include/wpi/commands2/ConditionalCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/ConditionalCommand.hpp index 8f7048a88c..c2bb786114 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ConditionalCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ConditionalCommand.hpp @@ -22,7 +22,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see ScheduleCommand */ diff --git a/commandsv2/src/main/native/include/wpi/commands2/DeferredCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/DeferredCommand.hpp index a57a9cecf4..c5132f3031 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/DeferredCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/DeferredCommand.hpp @@ -21,7 +21,7 @@ namespace wpi::cmd { * Note that the supplier must create a new Command each call. For * selecting one of a preallocated set of commands, use SelectCommand. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ class DeferredCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/FunctionalCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/FunctionalCommand.hpp index 1148b71c07..ea0dfaf580 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/FunctionalCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/FunctionalCommand.hpp @@ -18,7 +18,7 @@ namespace wpi::cmd { * complexity it is usually better practice to write a proper class for it than * to inline it. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class FunctionalCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/InstantCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/InstantCommand.hpp index 67c6fc1c51..9ba0791210 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/InstantCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/InstantCommand.hpp @@ -16,7 +16,7 @@ namespace wpi::cmd { * the same iteration of the scheduler. Users can either pass in a Runnable and * a set of requirements, or else subclass this command if desired. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class InstantCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/NotifierCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/NotifierCommand.hpp index dc5544a54c..06ecafc74d 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/NotifierCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/NotifierCommand.hpp @@ -23,7 +23,7 @@ namespace wpi::cmd { * make the executed code thread-safe. If you do not know what "thread-safe" * means, that is a good sign that you should not use this class. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class NotifierCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/ParallelCommandGroup.hpp b/commandsv2/src/main/native/include/wpi/commands2/ParallelCommandGroup.hpp index 35ca5c36f9..b807208ef2 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ParallelCommandGroup.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ParallelCommandGroup.hpp @@ -27,7 +27,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class ParallelCommandGroup : public CommandHelper { diff --git a/commandsv2/src/main/native/include/wpi/commands2/ParallelDeadlineGroup.hpp b/commandsv2/src/main/native/include/wpi/commands2/ParallelDeadlineGroup.hpp index 132e6bb25c..016befb14e 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ParallelDeadlineGroup.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ParallelDeadlineGroup.hpp @@ -28,7 +28,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class ParallelDeadlineGroup : public CommandHelper { diff --git a/commandsv2/src/main/native/include/wpi/commands2/ParallelRaceGroup.hpp b/commandsv2/src/main/native/include/wpi/commands2/ParallelRaceGroup.hpp index 2564f557bc..d26e80baae 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ParallelRaceGroup.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ParallelRaceGroup.hpp @@ -27,7 +27,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class ParallelRaceGroup : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/PrintCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/PrintCommand.hpp index 70079e5eac..84211988ba 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/PrintCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/PrintCommand.hpp @@ -13,7 +13,7 @@ namespace wpi::cmd { /** * A command that prints a string when initialized. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class PrintCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/ProxyCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/ProxyCommand.hpp index f96d69b6e1..5ac567893e 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ProxyCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ProxyCommand.hpp @@ -22,7 +22,7 @@ namespace wpi::cmd { * else the composition will cancel itself when the proxy is reached. If this * command is interrupted, it will cancel the command. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ class ProxyCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/RepeatCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/RepeatCommand.hpp index 2e2e58e5b2..d846a824f2 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/RepeatCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/RepeatCommand.hpp @@ -27,7 +27,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ class RepeatCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/RunCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/RunCommand.hpp index f4c4fe6848..82a4801525 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/RunCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/RunCommand.hpp @@ -17,7 +17,7 @@ namespace wpi::cmd { * Command.Until() to give it one. If you only wish * to execute a Runnable once, use InstantCommand. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class RunCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/ScheduleCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/ScheduleCommand.hpp index 06d319810d..d059458026 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/ScheduleCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/ScheduleCommand.hpp @@ -17,7 +17,7 @@ namespace wpi::cmd { * composition will not know about the status of the scheduled commands, and * will treat this command as finishing instantly. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class ScheduleCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/SelectCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/SelectCommand.hpp index ac6ad6332d..94abc436f1 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/SelectCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/SelectCommand.hpp @@ -31,7 +31,7 @@ namespace wpi::cmd { * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ template class SelectCommand : public CommandHelper> { diff --git a/commandsv2/src/main/native/include/wpi/commands2/SequentialCommandGroup.hpp b/commandsv2/src/main/native/include/wpi/commands2/SequentialCommandGroup.hpp index 25f296e0b4..9af3f45169 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/SequentialCommandGroup.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/SequentialCommandGroup.hpp @@ -30,7 +30,7 @@ const size_t invalid_index = std::numeric_limits::max(); * composition or scheduled individually, and the composition requires all * subsystems its components require. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class SequentialCommandGroup : public CommandHelper { diff --git a/commandsv2/src/main/native/include/wpi/commands2/StartEndCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/StartEndCommand.hpp index 4738e52094..a8b3554a4d 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/StartEndCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/StartEndCommand.hpp @@ -18,7 +18,7 @@ namespace wpi::cmd { * subclass it or use Command.WithTimeout() or Command.Until() to give * it one. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class StartEndCommand : public CommandHelper { diff --git a/commandsv2/src/main/native/include/wpi/commands2/Subsystem.hpp b/commandsv2/src/main/native/include/wpi/commands2/Subsystem.hpp index 8249b71210..7d5d6f7a71 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/Subsystem.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/Subsystem.hpp @@ -33,7 +33,7 @@ class CommandPtr; * SubsystemBase class offers a simple base for user implementations * that handles this. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see Command * @see CommandScheduler diff --git a/commandsv2/src/main/native/include/wpi/commands2/SubsystemBase.hpp b/commandsv2/src/main/native/include/wpi/commands2/SubsystemBase.hpp index b9ca6af066..26dcac4259 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/SubsystemBase.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/SubsystemBase.hpp @@ -16,7 +16,7 @@ namespace wpi::cmd { * A base for subsystems that handles registration in the constructor, and * provides a more intuitive method for setting the default command. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class SubsystemBase : public Subsystem, public wpi::util::Sendable, diff --git a/commandsv2/src/main/native/include/wpi/commands2/WaitCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/WaitCommand.hpp index ad09a509c0..c8bcedba83 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/WaitCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/WaitCommand.hpp @@ -13,7 +13,7 @@ namespace wpi::cmd { /** * A command that does nothing but takes a specified amount of time to finish. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class WaitCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/WaitUntilCommand.hpp b/commandsv2/src/main/native/include/wpi/commands2/WaitUntilCommand.hpp index 150fab465c..bbc604fc72 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/WaitUntilCommand.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/WaitUntilCommand.hpp @@ -15,7 +15,7 @@ namespace wpi::cmd { * A command that does nothing but ends after a specified match time or * condition. Useful for CommandGroups. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class WaitUntilCommand : public CommandHelper { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/button/GamepadButton.hpp b/commandsv2/src/main/native/include/wpi/commands2/button/GamepadButton.hpp index a777ee6428..f15b9e745b 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/button/GamepadButton.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/button/GamepadButton.hpp @@ -11,7 +11,7 @@ namespace wpi::cmd { * A class used to bind command scheduling to gamepad button presses. Can be * composed with other buttons with the operators in Trigger. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see Trigger */ diff --git a/commandsv2/src/main/native/include/wpi/commands2/button/JoystickButton.hpp b/commandsv2/src/main/native/include/wpi/commands2/button/JoystickButton.hpp index 5fe86fe0d2..06b177328b 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/button/JoystickButton.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/button/JoystickButton.hpp @@ -11,7 +11,7 @@ namespace wpi::cmd { * A class used to bind command scheduling to joystick button presses. Can be * composed with other buttons with the operators in Trigger. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see Trigger */ diff --git a/commandsv2/src/main/native/include/wpi/commands2/button/NetworkButton.hpp b/commandsv2/src/main/native/include/wpi/commands2/button/NetworkButton.hpp index 135a9728e1..5d2534fcf2 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/button/NetworkButton.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/button/NetworkButton.hpp @@ -16,7 +16,7 @@ namespace wpi::cmd { /** * A Button that uses a NetworkTable boolean field. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep */ class NetworkButton : public Trigger { public: diff --git a/commandsv2/src/main/native/include/wpi/commands2/button/POVButton.hpp b/commandsv2/src/main/native/include/wpi/commands2/button/POVButton.hpp index ad9992044c..e2b58fa333 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/button/POVButton.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/button/POVButton.hpp @@ -13,7 +13,7 @@ namespace wpi::cmd { * A class used to bind command scheduling to joystick POV presses. Can be * composed with other buttons with the operators in Trigger. * - * This class is provided by the NewCommands VendorDep + * This class is provided by the Commands v2 VendorDep * * @see Trigger */ diff --git a/commandsv2/src/main/native/include/wpi/commands2/button/Trigger.hpp b/commandsv2/src/main/native/include/wpi/commands2/button/Trigger.hpp index c7b923962e..637f32fb99 100644 --- a/commandsv2/src/main/native/include/wpi/commands2/button/Trigger.hpp +++ b/commandsv2/src/main/native/include/wpi/commands2/button/Trigger.hpp @@ -26,7 +26,7 @@ class Command; *

Triggers can easily be composed for advanced functionality using the * {@link #operator!}, {@link #operator||}, {@link #operator&&} operators. * - *

This class is provided by the NewCommands VendorDep + *

This class is provided by the Commands v2 VendorDep */ class Trigger { public: diff --git a/wpilibc/src/main/native/include/wpi/event/NetworkBooleanEvent.hpp b/wpilibc/src/main/native/include/wpi/event/NetworkBooleanEvent.hpp index 5543dc27ca..08bb3fe30f 100644 --- a/wpilibc/src/main/native/include/wpi/event/NetworkBooleanEvent.hpp +++ b/wpilibc/src/main/native/include/wpi/event/NetworkBooleanEvent.hpp @@ -19,8 +19,6 @@ class NetworkTableInstance; namespace wpi { /** * A Button that uses a NetworkTable boolean field. - * - * This class is provided by the NewCommands VendorDep */ class NetworkBooleanEvent : public BooleanEvent { public: