mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
SCRIPT: Spotless Apply
This commit is contained in:
committed by
Peter Johnson
parent
c89910b7c6
commit
c48b722dac
@@ -7,16 +7,16 @@ package org.wpilib.command2;
|
||||
import static org.wpilib.units.Units.Seconds;
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.units.measure.Time;
|
||||
import org.wpilib.util.function.BooleanConsumer;
|
||||
import org.wpilib.util.sendable.Sendable;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import org.wpilib.util.sendable.SendableRegistry;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import org.wpilib.annotation.NoDiscard;
|
||||
import org.wpilib.units.measure.Time;
|
||||
import org.wpilib.util.function.BooleanConsumer;
|
||||
import org.wpilib.util.sendable.Sendable;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import org.wpilib.util.sendable.SendableRegistry;
|
||||
|
||||
/**
|
||||
* A state machine representing a complete action to be performed by the robot. Commands are run by
|
||||
|
||||
@@ -6,17 +6,6 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.util.sendable.Sendable;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import org.wpilib.util.sendable.SendableRegistry;
|
||||
import org.wpilib.driverstation.DriverStation;
|
||||
import org.wpilib.opmode.RobotBase;
|
||||
import org.wpilib.opmode.RobotState;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.system.Watchdog;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.command2.Command.InterruptionBehavior;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.ArrayList;
|
||||
@@ -33,6 +22,17 @@ import java.util.Set;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.function.BiConsumer;
|
||||
import java.util.function.Consumer;
|
||||
import org.wpilib.command2.Command.InterruptionBehavior;
|
||||
import org.wpilib.driverstation.DriverStation;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.hardware.hal.HAL;
|
||||
import org.wpilib.opmode.RobotBase;
|
||||
import org.wpilib.opmode.RobotState;
|
||||
import org.wpilib.opmode.TimedRobot;
|
||||
import org.wpilib.system.Watchdog;
|
||||
import org.wpilib.util.sendable.Sendable;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import org.wpilib.util.sendable.SendableRegistry;
|
||||
|
||||
/**
|
||||
* The scheduler responsible for running {@link Command}s. A Command-based robot should call {@link
|
||||
|
||||
@@ -6,11 +6,11 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.units.measure.Time;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import java.util.function.Supplier;
|
||||
import org.wpilib.units.measure.Time;
|
||||
|
||||
/**
|
||||
* Namespace for command factory methods.
|
||||
|
||||
@@ -6,8 +6,8 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* A command composition that runs one of two commands, depending on the value of the given
|
||||
|
||||
@@ -6,9 +6,9 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.Set;
|
||||
import java.util.function.Supplier;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* Defers Command construction to runtime. Runs the command returned by a supplier when this command
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
|
||||
package org.wpilib.command2;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* A command composition that runs a set of commands in parallel, ending only when a specific
|
||||
|
||||
@@ -6,8 +6,8 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.function.Supplier;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* Schedules a given command when this command is initialized and ends when it ends, but does not
|
||||
|
||||
@@ -6,9 +6,9 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.Map;
|
||||
import java.util.function.Supplier;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* A command composition that runs one of a selection of commands using a selector and a key to
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
package org.wpilib.command2;
|
||||
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
|
||||
/**
|
||||
* A command composition that runs a list of commands in sequence.
|
||||
|
||||
@@ -6,10 +6,10 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.units.Units.Seconds;
|
||||
|
||||
import org.wpilib.system.Timer;
|
||||
import org.wpilib.units.measure.Time;
|
||||
import org.wpilib.util.sendable.SendableBuilder;
|
||||
import org.wpilib.util.sendable.SendableRegistry;
|
||||
import org.wpilib.system.Timer;
|
||||
|
||||
/**
|
||||
* A command that does nothing but takes a specified amount of time to finish.
|
||||
|
||||
@@ -6,8 +6,8 @@ package org.wpilib.command2;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.system.Timer;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import org.wpilib.system.Timer;
|
||||
|
||||
/**
|
||||
* A command that does nothing but ends after a specified match time or condition. Useful for
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
package org.wpilib.command2.button;
|
||||
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
import org.wpilib.driverstation.Gamepad;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
|
||||
/**
|
||||
* A version of {@link Gamepad} with {@link Trigger} factories for command-based.
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
package org.wpilib.command2.button;
|
||||
|
||||
import org.wpilib.math.util.Pair;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
import org.wpilib.driverstation.DriverStation.POVDirection;
|
||||
import org.wpilib.driverstation.GenericHID;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.wpilib.math.util.Pair;
|
||||
|
||||
/**
|
||||
* A version of {@link GenericHID} with {@link Trigger} factories for command-based.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
|
||||
package org.wpilib.command2.button;
|
||||
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
import org.wpilib.driverstation.Joystick;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
|
||||
/**
|
||||
* A version of {@link Joystick} with {@link Trigger} factories for command-based.
|
||||
|
||||
@@ -6,11 +6,11 @@ package org.wpilib.command2.button;
|
||||
|
||||
import static org.wpilib.util.ErrorMessages.requireNonNullParam;
|
||||
|
||||
import org.wpilib.math.filter.Debouncer;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import org.wpilib.command2.Command;
|
||||
import org.wpilib.command2.CommandScheduler;
|
||||
import java.util.function.BooleanSupplier;
|
||||
import org.wpilib.event.EventLoop;
|
||||
import org.wpilib.math.filter.Debouncer;
|
||||
|
||||
/**
|
||||
* This class provides an easy way to link commands to conditions.
|
||||
|
||||
@@ -4,21 +4,21 @@
|
||||
|
||||
package org.wpilib.command2.sysid;
|
||||
|
||||
import static java.util.Map.entry;
|
||||
import static org.wpilib.units.Units.Second;
|
||||
import static org.wpilib.units.Units.Seconds;
|
||||
import static org.wpilib.units.Units.Volts;
|
||||
import static java.util.Map.entry;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
import org.wpilib.command2.Command;
|
||||
import org.wpilib.command2.Subsystem;
|
||||
import org.wpilib.sysid.SysIdRoutineLog;
|
||||
import org.wpilib.system.Timer;
|
||||
import org.wpilib.units.VoltageUnit;
|
||||
import org.wpilib.units.measure.Time;
|
||||
import org.wpilib.units.measure.Velocity;
|
||||
import org.wpilib.units.measure.Voltage;
|
||||
import org.wpilib.system.Timer;
|
||||
import org.wpilib.sysid.SysIdRoutineLog;
|
||||
import org.wpilib.command2.Command;
|
||||
import org.wpilib.command2.Subsystem;
|
||||
import java.util.Map;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
/**
|
||||
* A SysId characterization routine for a single mechanism. Mechanisms may have multiple motors.
|
||||
|
||||
Reference in New Issue
Block a user