mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Removed extra newlines after open curly braces (#935)
Generated by wpilibsuite/styleguide#115.
This commit is contained in:
committed by
Peter Johnson
parent
938d5379e6
commit
adb6098353
@@ -17,7 +17,6 @@ import org.opencv.core.Mat;
|
||||
* @see VisionThread
|
||||
*/
|
||||
public interface VisionPipeline {
|
||||
|
||||
/**
|
||||
* Processes the image input and sets the result objects.
|
||||
* Implementations should make these objects accessible.
|
||||
|
||||
@@ -38,7 +38,6 @@ public class VisionRunner<P extends VisionPipeline> {
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface Listener<P extends VisionPipeline> {
|
||||
|
||||
/**
|
||||
* Called when the pipeline has run. This shouldn't take much time to run because it will delay
|
||||
* later calls to the pipeline's {@link VisionPipeline#process process} method. Copying the
|
||||
|
||||
@@ -16,7 +16,6 @@ package edu.wpi.first.wpilibj;
|
||||
* before use.
|
||||
*/
|
||||
public interface CounterBase {
|
||||
|
||||
/**
|
||||
* The number of edges for the counterbase to increment or decrement on.
|
||||
*/
|
||||
|
||||
@@ -16,7 +16,6 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableBuilder;
|
||||
*/
|
||||
@Deprecated
|
||||
public interface NamedSendable extends Sendable {
|
||||
|
||||
/**
|
||||
* The name of the subtable.
|
||||
*
|
||||
|
||||
@@ -9,7 +9,6 @@ package edu.wpi.first.wpilibj;
|
||||
|
||||
@SuppressWarnings("SummaryJavadoc")
|
||||
public interface PIDInterface extends Controller {
|
||||
|
||||
@SuppressWarnings("ParameterName")
|
||||
void setPID(double p, double i, double d);
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ package edu.wpi.first.wpilibj;
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface PIDOutput {
|
||||
|
||||
/**
|
||||
* Set the output to the value calculated by PIDController.
|
||||
*
|
||||
|
||||
@@ -273,7 +273,6 @@ public class RobotDrive implements MotorSafety {
|
||||
* @param squaredInputs Setting this parameter to true decreases the sensitivity at lower speeds
|
||||
*/
|
||||
public void tankDrive(double leftValue, double rightValue, boolean squaredInputs) {
|
||||
|
||||
if (!kTank_Reported) {
|
||||
HAL.report(tResourceType.kResourceType_RobotDrive, getNumMotors(),
|
||||
tInstances.kRobotDrive_Tank);
|
||||
|
||||
@@ -52,7 +52,6 @@ public abstract class Trigger extends SendableBase {
|
||||
*/
|
||||
public void whenActive(final Command command) {
|
||||
new ButtonScheduler() {
|
||||
|
||||
private boolean m_pressedLast = grab();
|
||||
|
||||
@Override
|
||||
@@ -79,7 +78,6 @@ public abstract class Trigger extends SendableBase {
|
||||
*/
|
||||
public void whileActive(final Command command) {
|
||||
new ButtonScheduler() {
|
||||
|
||||
private boolean m_pressedLast = grab();
|
||||
|
||||
@Override
|
||||
@@ -104,7 +102,6 @@ public abstract class Trigger extends SendableBase {
|
||||
*/
|
||||
public void whenInactive(final Command command) {
|
||||
new ButtonScheduler() {
|
||||
|
||||
private boolean m_pressedLast = grab();
|
||||
|
||||
@Override
|
||||
@@ -128,7 +125,6 @@ public abstract class Trigger extends SendableBase {
|
||||
*/
|
||||
public void toggleWhenActive(final Command command) {
|
||||
new ButtonScheduler() {
|
||||
|
||||
private boolean m_pressedLast = grab();
|
||||
|
||||
@Override
|
||||
@@ -156,7 +152,6 @@ public abstract class Trigger extends SendableBase {
|
||||
*/
|
||||
public void cancelWhenActive(final Command command) {
|
||||
new ButtonScheduler() {
|
||||
|
||||
private boolean m_pressedLast = grab();
|
||||
|
||||
@Override
|
||||
|
||||
@@ -222,7 +222,6 @@ public class CommandGroup extends Command {
|
||||
}
|
||||
|
||||
while (m_currentCommandIndex < m_commands.size()) {
|
||||
|
||||
if (cmd != null) {
|
||||
if (entry.isTimedOut()) {
|
||||
cmd._cancel();
|
||||
|
||||
@@ -144,7 +144,6 @@ public class Scheduler extends SendableBase implements Sendable {
|
||||
|
||||
// Only add if not already in
|
||||
if (!m_commandTable.containsKey(command)) {
|
||||
|
||||
// Check that the requirements can be had
|
||||
Enumeration requirements = command.getRequirements();
|
||||
while (requirements.hasMoreElements()) {
|
||||
@@ -192,7 +191,6 @@ public class Scheduler extends SendableBase implements Sendable {
|
||||
* SmartDashboard</li> <li>Add Commands</li> <li>Add Defaults</li> </ol>
|
||||
*/
|
||||
public void run() {
|
||||
|
||||
m_runningCommandsChanged = false;
|
||||
|
||||
if (m_disabled) {
|
||||
|
||||
@@ -17,7 +17,6 @@ public class SortedVector<E> extends Vector<E> {
|
||||
* Interface used to determine the order to place sorted objects.
|
||||
*/
|
||||
public interface Comparator {
|
||||
|
||||
/**
|
||||
* Compare the given two objects.
|
||||
*
|
||||
|
||||
@@ -36,7 +36,6 @@ public final class UnitTestUtility {
|
||||
HLUsageReporting.SetImplementation(new HLUsageReporting.Null());
|
||||
RobotState.SetImplementation(new MockRobotStateInterface());
|
||||
Timer.SetImplementation(new Timer.StaticInterface() {
|
||||
|
||||
@Override
|
||||
public double getFPGATimestamp() {
|
||||
return System.currentTimeMillis() / 1000.0;
|
||||
|
||||
@@ -48,7 +48,6 @@ public class Robot extends TimedRobot {
|
||||
*/
|
||||
@Override
|
||||
public void disabledInit() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -27,7 +27,6 @@ public class MockDS {
|
||||
|
||||
@SuppressWarnings("JavadocMethod")
|
||||
public void start() {
|
||||
|
||||
m_thread = new Thread(() -> {
|
||||
DatagramSocket socket;
|
||||
try {
|
||||
|
||||
@@ -96,7 +96,6 @@ public class PDPTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void checkRunningCurrentForSpeedController() throws CANMessageNotFoundException {
|
||||
|
||||
/* Set the motor to full forward */
|
||||
me.getMotor().set(1.0);
|
||||
Timer.delay(2);
|
||||
|
||||
@@ -18,7 +18,6 @@ import edu.wpi.first.wpilibj.test.TestBench;
|
||||
* of a test, and ensuring that future tests will not be affected by the results of a test.
|
||||
*/
|
||||
public interface ITestFixture {
|
||||
|
||||
/**
|
||||
* Performs any required setup for this fixture, ensuring that all fixture elements are ready for
|
||||
* testing.
|
||||
|
||||
@@ -33,7 +33,6 @@ public class FakeEncoderSource {
|
||||
}
|
||||
|
||||
public void run() {
|
||||
|
||||
final DigitalOutput lead;
|
||||
final DigitalOutput lag;
|
||||
|
||||
|
||||
@@ -33,6 +33,5 @@ public class QuickTest extends AbstractComsSetup {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,6 @@ public final class TestBench {
|
||||
* @return a freshly allocated Talon, Encoder pair
|
||||
*/
|
||||
public MotorEncoderFixture<Talon> getTalonPair() {
|
||||
|
||||
MotorEncoderFixture<Talon> talonPair = new MotorEncoderFixture<Talon>() {
|
||||
@Override
|
||||
protected Talon giveSpeedController() {
|
||||
@@ -127,7 +126,6 @@ public final class TestBench {
|
||||
* @return a freshly allocated Victor, Encoder pair
|
||||
*/
|
||||
public MotorEncoderFixture<Victor> getVictorPair() {
|
||||
|
||||
MotorEncoderFixture<Victor> vicPair = new MotorEncoderFixture<Victor>() {
|
||||
@Override
|
||||
protected Victor giveSpeedController() {
|
||||
@@ -262,7 +260,6 @@ public final class TestBench {
|
||||
@SuppressWarnings("JavadocMethod")
|
||||
public static RelayCrossConnectFixture getRelayCrossConnectFixture() {
|
||||
RelayCrossConnectFixture relay = new RelayCrossConnectFixture() {
|
||||
|
||||
@Override
|
||||
protected Relay giveRelay() {
|
||||
return new Relay(0);
|
||||
|
||||
Reference in New Issue
Block a user