mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +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
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user