mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Removed extra newlines from beginning of Java classes (#859)
The content of this PR was generated by styleguide#111.
This commit is contained in:
committed by
Peter Johnson
parent
8346caed9c
commit
eedb8910c3
@@ -22,7 +22,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
*/
|
||||
@SuppressWarnings({"TypeName", "PMD.UnusedPrivateField"})
|
||||
public class ADXL345_I2C extends SensorBase implements Accelerometer, Sendable {
|
||||
|
||||
private static final byte kAddress = 0x1D;
|
||||
private static final byte kPowerCtlRegister = 0x2D;
|
||||
private static final byte kDataFormatRegister = 0x31;
|
||||
@@ -57,7 +56,6 @@ public class ADXL345_I2C extends SensorBase implements Accelerometer, Sendable {
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public static class AllAxes {
|
||||
|
||||
public double XAxis;
|
||||
public double YAxis;
|
||||
public double ZAxis;
|
||||
|
||||
@@ -59,7 +59,6 @@ public class ADXL345_SPI extends SensorBase implements Accelerometer, Sendable {
|
||||
|
||||
@SuppressWarnings("MemberName")
|
||||
public static class AllAxes {
|
||||
|
||||
public double XAxis;
|
||||
public double YAxis;
|
||||
public double ZAxis;
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj;
|
||||
* Structure for holding the values stored in an accumulator.
|
||||
*/
|
||||
public class AccumulatorResult {
|
||||
|
||||
/**
|
||||
* The total value accumulated.
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* is calibrated by finding the center value over a period of time.
|
||||
*/
|
||||
public class AnalogAccelerometer extends SensorBase implements PIDSource, Sendable {
|
||||
|
||||
private AnalogInput m_analogChannel;
|
||||
private double m_voltsPerG = 1.0;
|
||||
private double m_zeroGVoltage = 2.5;
|
||||
|
||||
@@ -24,7 +24,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* <p>This class is for gyro sensors that connect to an analog input.
|
||||
*/
|
||||
public class AnalogGyro extends GyroBase implements Gyro, PIDSource, Sendable {
|
||||
|
||||
private static final double kDefaultVoltsPerDegreePerSecond = 0.007;
|
||||
protected AnalogInput m_analog;
|
||||
private boolean m_channelAllocated = false;
|
||||
|
||||
@@ -26,7 +26,6 @@ import edu.wpi.first.wpilibj.util.AllocationException;
|
||||
* number of samples to retain the resolution, but get more stable values.
|
||||
*/
|
||||
public class AnalogInput extends SensorBase implements PIDSource, Sendable {
|
||||
|
||||
private static final int kAccumulatorSlot = 1;
|
||||
int m_port; // explicit no modifier, private and package accessible.
|
||||
private int m_channel;
|
||||
|
||||
@@ -21,12 +21,10 @@ import edu.wpi.first.wpilibj.util.BoundaryException;
|
||||
* Class for creating and configuring Analog Triggers.
|
||||
*/
|
||||
public class AnalogTrigger extends SensorBase implements Sendable {
|
||||
|
||||
/**
|
||||
* Exceptions dealing with improper operation of the Analog trigger.
|
||||
*/
|
||||
public class AnalogTriggerException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
*
|
||||
|
||||
@@ -41,7 +41,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* limited.
|
||||
*/
|
||||
public class AnalogTriggerOutput extends DigitalSource {
|
||||
|
||||
/**
|
||||
* Exceptions dealing with improper operation of the Analog trigger output.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* before use.
|
||||
*/
|
||||
public class Counter extends SensorBase implements CounterBase, Sendable, PIDSource {
|
||||
|
||||
/**
|
||||
* Mode determines how and what the counter counts.
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,6 @@ package edu.wpi.first.wpilibj;
|
||||
* Digilent DMC 60 Speed Controller.
|
||||
*/
|
||||
public class DMC60 extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
@@ -21,7 +21,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* that an input must remain high or low before it is classified as high or low.
|
||||
*/
|
||||
public class DigitalGlitchFilter extends SensorBase {
|
||||
|
||||
/**
|
||||
* Configures the Digital Glitch Filter to its default settings.
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* implemented elsewhere will automatically allocate digital inputs and outputs as required.
|
||||
*/
|
||||
public class DigitalOutput extends SendableBase implements Sendable {
|
||||
|
||||
private static final int invalidPwmGenerator = 0;
|
||||
private int m_pwmGenerator = invalidPwmGenerator;
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* controlled by two separate channels.
|
||||
*/
|
||||
public class DoubleSolenoid extends SolenoidBase implements Sendable {
|
||||
|
||||
/**
|
||||
* Possible values for a DoubleSolenoid.
|
||||
*/
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.hal.PowerJNI;
|
||||
* Provide access to the network communication data to / from the Driver Station.
|
||||
*/
|
||||
public class DriverStation implements RobotState.Interface {
|
||||
|
||||
/**
|
||||
* Number of Joystick Ports.
|
||||
*/
|
||||
@@ -63,7 +62,6 @@ public class DriverStation implements RobotState.Interface {
|
||||
private double m_nextMessageTime = 0.0;
|
||||
|
||||
private static class DriverStationTask implements Runnable {
|
||||
|
||||
private DriverStation m_ds;
|
||||
|
||||
DriverStationTask(DriverStation ds) {
|
||||
|
||||
@@ -29,7 +29,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* before use.
|
||||
*/
|
||||
public class Encoder extends SensorBase implements CounterBase, PIDSource, Sendable {
|
||||
|
||||
public enum IndexingType {
|
||||
kResetWhileHigh(0), kResetWhileLow(1), kResetOnFallingEdge(2), kResetOnRisingEdge(3);
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* timing in the FPGA to sense direction.
|
||||
*/
|
||||
public class GearTooth extends Counter {
|
||||
|
||||
private static final double kGearToothThreshold = 55e-6;
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,7 +15,6 @@ import edu.wpi.first.wpilibj.util.AllocationException;
|
||||
* Base for sensors to be used with interrupts.
|
||||
*/
|
||||
public abstract class InterruptableSensorBase extends SensorBase {
|
||||
|
||||
@SuppressWarnings("JavadocMethod")
|
||||
public enum WaitResult {
|
||||
kTimeout(0x0), kRisingEdge(0x1), kFallingEdge(0x100), kBoth(0x101);
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* Texas Instruments / Vex Robotics Jaguar Speed Controller as a PWM device.
|
||||
*/
|
||||
public class Jaguar extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
@@ -17,7 +17,6 @@ import java.util.Set;
|
||||
* whenever the motors value is updated.
|
||||
*/
|
||||
public final class MotorSafetyHelper {
|
||||
|
||||
private double m_expiration;
|
||||
private boolean m_enabled;
|
||||
private double m_stopTime;
|
||||
|
||||
@@ -13,7 +13,6 @@ import java.util.concurrent.locks.ReentrantLock;
|
||||
import edu.wpi.first.wpilibj.hal.NotifierJNI;
|
||||
|
||||
public class Notifier {
|
||||
|
||||
// The thread waiting on the HAL alarm.
|
||||
private final Thread m_thread;
|
||||
// The lock for the process information.
|
||||
|
||||
@@ -27,7 +27,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* given set of PID constants.
|
||||
*/
|
||||
public class PIDController extends SendableBase implements PIDInterface, Sendable, Controller {
|
||||
|
||||
public static final double kDefaultPeriod = .05;
|
||||
private static int instances = 0;
|
||||
@SuppressWarnings("MemberName")
|
||||
@@ -120,7 +119,6 @@ public class PIDController extends SendableBase implements PIDInterface, Sendabl
|
||||
}
|
||||
|
||||
private class PIDTask extends TimerTask {
|
||||
|
||||
private PIDController m_controller;
|
||||
|
||||
PIDTask(PIDController controller) {
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj;
|
||||
* Structure for holding the config data result for PWM.
|
||||
*/
|
||||
public class PWMConfigDataResult {
|
||||
|
||||
PWMConfigDataResult(int max, int deadbandMax, int center, int deadbandMin, int min) {
|
||||
this.max = max;
|
||||
this.deadbandMax = deadbandMax;
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* Cross the Road Electronics (CTRE) Talon SRX Speed Controller with PWM control.
|
||||
*/
|
||||
public class PWMTalonSRX extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor for a PWMTalonSRX connected via PWM.
|
||||
*
|
||||
|
||||
@@ -14,7 +14,6 @@ package edu.wpi.first.wpilibj;
|
||||
* Cross the Road Electronics (CTRE) Victor SPX Speed Controller with PWM control.
|
||||
*/
|
||||
public class PWMVictorSPX extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor for a PWMVictorSPX connected via PWM.
|
||||
*
|
||||
|
||||
@@ -15,7 +15,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* Panel over CAN.
|
||||
*/
|
||||
public class PowerDistributionPanel extends SensorBase implements Sendable {
|
||||
|
||||
private final int m_module;
|
||||
|
||||
/**
|
||||
|
||||
@@ -32,7 +32,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* with all the key-value pairs. </p>
|
||||
*/
|
||||
public class Preferences {
|
||||
|
||||
/**
|
||||
* The Preferences table name.
|
||||
*/
|
||||
|
||||
@@ -34,7 +34,6 @@ public class Relay extends SendableBase implements MotorSafety, Sendable {
|
||||
* which the relay is set.
|
||||
*/
|
||||
public class InvalidValueException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
*
|
||||
|
||||
@@ -24,7 +24,6 @@ import edu.wpi.first.wpilibj.util.CheckedAllocationException;
|
||||
* unload/reload.
|
||||
*/
|
||||
public final class Resource {
|
||||
|
||||
private static Resource resourceList = null;
|
||||
private final boolean[] m_numAllocated;
|
||||
private final int m_size;
|
||||
|
||||
@@ -25,7 +25,6 @@ import static java.util.Objects.requireNonNull;
|
||||
*/
|
||||
@Deprecated
|
||||
public class RobotDrive implements MotorSafety {
|
||||
|
||||
protected MotorSafetyHelper m_safetyHelper;
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* Mindsensors SD540 Speed Controller.
|
||||
*/
|
||||
public class SD540 extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Common initialization code called by all constructors.
|
||||
*
|
||||
|
||||
@@ -17,7 +17,6 @@ import edu.wpi.first.wpilibj.hal.SPIJNI;
|
||||
* Represents a SPI bus port.
|
||||
*/
|
||||
public class SPI {
|
||||
|
||||
public enum Port {
|
||||
kOnboardCS0(0), kOnboardCS1(1), kOnboardCS2(2), kOnboardCS3(3), kMXP(4);
|
||||
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj;
|
||||
* Manages a PWM object.
|
||||
*/
|
||||
public class SafePWM extends PWM implements MotorSafety {
|
||||
|
||||
private final MotorSafetyHelper m_safetyHelper;
|
||||
|
||||
/**
|
||||
|
||||
@@ -30,7 +30,6 @@ import edu.wpi.first.wpilibj.livewindow.LiveWindow;
|
||||
*/
|
||||
@Deprecated
|
||||
public class SampleRobot extends RobotBase {
|
||||
|
||||
private boolean m_robotMainOverridden = true;
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,7 +25,6 @@ import edu.wpi.first.wpilibj.hal.SerialPortJNI;
|
||||
* http://www.ni.com/pdf/manuals/370132c.pdf
|
||||
*/
|
||||
public class SerialPort {
|
||||
|
||||
private byte m_port;
|
||||
|
||||
public enum Port {
|
||||
|
||||
@@ -18,7 +18,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* in the FIRST Kit of Parts in 2008.
|
||||
*/
|
||||
public class Servo extends PWM {
|
||||
|
||||
private static final double kMaxServoAngle = 180.0;
|
||||
private static final double kMinServoAngle = 0.0;
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* device within the current spec of the PCM.
|
||||
*/
|
||||
public class Solenoid extends SolenoidBase implements Sendable {
|
||||
|
||||
private final int m_channel; // The channel to control.
|
||||
private int m_solenoidHandle;
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.SolenoidJNI;
|
||||
* classes.
|
||||
*/
|
||||
public abstract class SolenoidBase extends SendableBase {
|
||||
|
||||
protected final int m_moduleNumber; // The number of the solenoid module being used.
|
||||
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* REV Robotics SPARK Speed Controller.
|
||||
*/
|
||||
public class Spark extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Common initialization code called by all constructors.
|
||||
*
|
||||
|
||||
@@ -13,7 +13,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* Allows multiple {@link SpeedController} objects to be linked together.
|
||||
*/
|
||||
public class SpeedControllerGroup extends SendableBase implements SpeedController {
|
||||
|
||||
private boolean m_isInverted = false;
|
||||
private final SpeedController[] m_speedControllers;
|
||||
private static int instances = 0;
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* Cross the Road Electronics (CTRE) Talon and Talon SR Speed Controller.
|
||||
*/
|
||||
public class Talon extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor for a Talon (original or Talon SR).
|
||||
*
|
||||
|
||||
@@ -10,7 +10,6 @@ package edu.wpi.first.wpilibj;
|
||||
import edu.wpi.first.wpilibj.hal.ThreadsJNI;
|
||||
|
||||
public class Threads {
|
||||
|
||||
/**
|
||||
* Get the thread priority for the current thread.
|
||||
* @return The current thread priority. Scaled 1-99.
|
||||
|
||||
@@ -23,7 +23,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* flight).
|
||||
*/
|
||||
public class Ultrasonic extends SensorBase implements PIDSource, Sendable {
|
||||
|
||||
/**
|
||||
* The units to return when PIDGet is called.
|
||||
*/
|
||||
@@ -67,7 +66,6 @@ public class Ultrasonic extends SensorBase implements PIDSource, Sendable {
|
||||
* sensors!!
|
||||
*/
|
||||
private class UltrasonicChecker extends Thread {
|
||||
|
||||
@Override
|
||||
public synchronized void run() {
|
||||
Ultrasonic ultrasonic = null;
|
||||
|
||||
@@ -15,7 +15,6 @@ import edu.wpi.first.wpilibj.hal.HALUtil;
|
||||
*/
|
||||
@Deprecated
|
||||
public final class Utility {
|
||||
|
||||
private Utility() {
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* be used with this class but may need to be calibrated per the Victor 884 user manual.
|
||||
*/
|
||||
public class Victor extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.hal.HAL;
|
||||
* VEX Robotics Victor SP Speed Controller.
|
||||
*/
|
||||
public class VictorSP extends PWMSpeedController {
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
|
||||
@@ -20,7 +20,6 @@ import edu.wpi.first.wpilibj.command.Command;
|
||||
* wrapper around Trigger with the method names renamed to fit the Button object use.
|
||||
*/
|
||||
public abstract class Button extends Trigger {
|
||||
|
||||
/**
|
||||
* Starts the given command whenever the button is newly pressed.
|
||||
*
|
||||
|
||||
@@ -12,7 +12,6 @@ package edu.wpi.first.wpilibj.buttons;
|
||||
* Also includes a setting for whether or not it should invert its value.
|
||||
*/
|
||||
public class InternalButton extends Button {
|
||||
|
||||
private boolean m_pressed;
|
||||
private boolean m_inverted;
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ import edu.wpi.first.wpilibj.GenericHID;
|
||||
* A {@link Button} that gets its state from a {@link GenericHID}.
|
||||
*/
|
||||
public class JoystickButton extends Button {
|
||||
|
||||
private final GenericHID m_joystick;
|
||||
private final int m_buttonNumber;
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ import edu.wpi.first.networktables.NetworkTableInstance;
|
||||
* A {@link Button} that uses a {@link NetworkTable} boolean field.
|
||||
*/
|
||||
public class NetworkButton extends Button {
|
||||
|
||||
private final NetworkTableEntry m_entry;
|
||||
|
||||
public NetworkButton(String table, String field) {
|
||||
|
||||
@@ -24,7 +24,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* the full functionality of the Trigger class.
|
||||
*/
|
||||
public abstract class Trigger extends SendableBase {
|
||||
|
||||
private volatile boolean m_sendablePressed = false;
|
||||
|
||||
/**
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.can;
|
||||
* Structure for holding the result of a CAN Status request.
|
||||
*/
|
||||
public class CANStatus {
|
||||
|
||||
/**
|
||||
* The utilization of the CAN Bus.
|
||||
*/
|
||||
|
||||
@@ -32,7 +32,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* @see IllegalUseOfCommandException
|
||||
*/
|
||||
public class CommandGroup extends Command {
|
||||
|
||||
/**
|
||||
* The commands in this group (stored in entries).
|
||||
*/
|
||||
@@ -380,7 +379,6 @@ public class CommandGroup extends Command {
|
||||
}
|
||||
|
||||
private static class Entry {
|
||||
|
||||
private static final int IN_SEQUENCE = 0;
|
||||
private static final int BRANCH_PEER = 1;
|
||||
private static final int BRANCH_CHILD = 2;
|
||||
|
||||
@@ -19,7 +19,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* a new child. </p>
|
||||
*/
|
||||
public class IllegalUseOfCommandException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Instantiates an {@link IllegalUseOfCommandException}.
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* {@link Command isFinished}.
|
||||
*/
|
||||
public class InstantCommand extends Command {
|
||||
|
||||
public InstantCommand() {
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* ended/interrupted. </p>
|
||||
*/
|
||||
public abstract class PIDCommand extends Command implements Sendable {
|
||||
|
||||
/**
|
||||
* The internal {@link PIDController}.
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,6 @@ import edu.wpi.first.wpilibj.Sendable;
|
||||
* programmer.
|
||||
*/
|
||||
public abstract class PIDSubsystem extends Subsystem implements Sendable {
|
||||
|
||||
/**
|
||||
* The internal {@link PIDController}.
|
||||
*/
|
||||
|
||||
@@ -13,7 +13,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* it reaches a certain point.
|
||||
*/
|
||||
public class PrintCommand extends InstantCommand {
|
||||
|
||||
/**
|
||||
* The message to print out.
|
||||
*/
|
||||
|
||||
@@ -31,7 +31,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* @see Command
|
||||
*/
|
||||
public class Scheduler extends SendableBase implements Sendable {
|
||||
|
||||
/**
|
||||
* The Singleton Instance.
|
||||
*/
|
||||
|
||||
@@ -12,7 +12,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* when it is initialized and will finish immediately.
|
||||
*/
|
||||
public class StartCommand extends InstantCommand {
|
||||
|
||||
/**
|
||||
* The command to fork.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
* @see Command
|
||||
*/
|
||||
public abstract class Subsystem extends SendableBase implements Sendable {
|
||||
|
||||
/**
|
||||
* Whether or not getDefaultCommand() was called.
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* @see CommandGroup
|
||||
*/
|
||||
public class WaitCommand extends TimedCommand {
|
||||
|
||||
/**
|
||||
* Instantiates a {@link WaitCommand} with the given timeout.
|
||||
*
|
||||
|
||||
@@ -16,7 +16,6 @@ package edu.wpi.first.wpilibj.command;
|
||||
* to finish, before continuing in the main {@link CommandGroup} sequence.
|
||||
*/
|
||||
public class WaitForChildren extends Command {
|
||||
|
||||
protected boolean isFinished() {
|
||||
return getGroup() == null || getGroup().m_children.isEmpty();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ import edu.wpi.first.wpilibj.Timer;
|
||||
* some value, then continue to the next command.
|
||||
*/
|
||||
public class WaitUntilCommand extends Command {
|
||||
|
||||
private double m_time;
|
||||
|
||||
public WaitUntilCommand(double time) {
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
package edu.wpi.first.wpilibj.hal;
|
||||
|
||||
public class EncoderJNI extends JNIWrapper {
|
||||
|
||||
public static native int initializeEncoder(int digitalSourceHandleA, int analogTriggerTypeA,
|
||||
int digitalSourceHandleB, int analogTriggerTypeB,
|
||||
boolean reverseDirection, int encodingType);
|
||||
|
||||
@@ -23,7 +23,6 @@ import edu.wpi.first.wpilibj.Sendable;
|
||||
* LiveWindow.
|
||||
*/
|
||||
public class LiveWindow {
|
||||
|
||||
private static class Component {
|
||||
Component(Sendable sendable, Sendable parent) {
|
||||
m_sendable = sendable;
|
||||
|
||||
@@ -29,7 +29,6 @@ import static java.util.Objects.requireNonNull;
|
||||
* @param <V> The type of the values to be stored
|
||||
*/
|
||||
public class SendableChooser<V> extends SendableBase implements Sendable {
|
||||
|
||||
/**
|
||||
* The key for the default value.
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.util;
|
||||
* Exception indicating that the resource is already allocated.
|
||||
*/
|
||||
public class AllocationException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Create a new AllocationException.
|
||||
*
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.util;
|
||||
* This exception represents an error in which a lower limit was set as higher than an upper limit.
|
||||
*/
|
||||
public class BoundaryException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Create a new exception with the given message.
|
||||
*
|
||||
|
||||
@@ -12,7 +12,6 @@ package edu.wpi.first.wpilibj.util;
|
||||
* resource class.
|
||||
*/
|
||||
public class CheckedAllocationException extends Exception {
|
||||
|
||||
/**
|
||||
* Create a new CheckedAllocationException.
|
||||
*
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.util;
|
||||
* Exception indicating that an error has occured with a HAL Handle.
|
||||
*/
|
||||
public class HalHandleException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Create a new HalHandleException.
|
||||
*
|
||||
|
||||
@@ -13,7 +13,6 @@ import java.util.Vector;
|
||||
* A vector that is sorted.
|
||||
*/
|
||||
public class SortedVector<E> extends Vector<E> {
|
||||
|
||||
/**
|
||||
* Interface used to determine the order to place sorted objects.
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.util;
|
||||
* Exception for bad status codes from the chip object.
|
||||
*/
|
||||
public final class UncleanStatusException extends IllegalStateException {
|
||||
|
||||
private final int m_statusCode;
|
||||
|
||||
/**
|
||||
|
||||
@@ -23,7 +23,6 @@ import org.opencv.core.Mat;
|
||||
* @see edu.wpi.first.wpilibj.vision
|
||||
*/
|
||||
public class VisionRunner<P extends VisionPipeline> {
|
||||
|
||||
private final CvSink m_cvSink = new CvSink("VisionRunner CvSink");
|
||||
private final P m_pipeline;
|
||||
private final Mat m_image = new Mat();
|
||||
|
||||
@@ -19,7 +19,6 @@ import edu.wpi.cscore.VideoSource;
|
||||
* @see Thread#setDaemon(boolean)
|
||||
*/
|
||||
public class VisionThread extends Thread {
|
||||
|
||||
/**
|
||||
* Creates a vision thread that continuously runs a {@link VisionPipeline}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user