mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Remove extra newlines after open curly braces (NFC) (#3471)
This commit is contained in:
@@ -40,7 +40,6 @@ public class DoubleSolenoid implements Sendable, AutoCloseable {
|
||||
* @param reverseChannel The reverse channel on the module to control (0..7).
|
||||
*/
|
||||
public DoubleSolenoid(PneumaticsBase module, final int forwardChannel, final int reverseChannel) {
|
||||
|
||||
m_module = Objects.requireNonNull(module, "Module cannot be null");
|
||||
|
||||
// TODO check channels
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
package edu.wpi.first.wpilibj;
|
||||
|
||||
public interface PneumaticsBase extends AutoCloseable {
|
||||
|
||||
/**
|
||||
* Sets solenoids on a pneumatics module.
|
||||
*
|
||||
|
||||
@@ -41,7 +41,6 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
private static void setupCameraServerShared() {
|
||||
CameraServerShared shared =
|
||||
new CameraServerShared() {
|
||||
|
||||
@Override
|
||||
public void reportVideoServer(int id) {
|
||||
HAL.report(tResourceType.kResourceType_PCVideoServer, id + 1);
|
||||
|
||||
@@ -14,7 +14,6 @@ import java.util.function.Supplier;
|
||||
|
||||
/** Common interface for objects that can contain shuffleboard components. */
|
||||
public interface ShuffleboardContainer extends ShuffleboardValue {
|
||||
|
||||
/**
|
||||
* Gets the components that are direct children of this container.
|
||||
*
|
||||
|
||||
@@ -11,7 +11,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
|
||||
* <p>This class is package-private to minimize API surface area.
|
||||
*/
|
||||
interface ShuffleboardRoot {
|
||||
|
||||
/**
|
||||
* Gets the tab with the given title, creating it if it does not already exist.
|
||||
*
|
||||
|
||||
@@ -7,7 +7,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
|
||||
import edu.wpi.first.networktables.NetworkTable;
|
||||
|
||||
interface ShuffleboardValue {
|
||||
|
||||
/**
|
||||
* Gets the title of this Shuffleboard value.
|
||||
*
|
||||
|
||||
@@ -13,7 +13,6 @@ package edu.wpi.first.wpilibj.shuffleboard;
|
||||
*/
|
||||
abstract class ShuffleboardWidget<W extends ShuffleboardWidget<W>>
|
||||
extends ShuffleboardComponent<W> {
|
||||
|
||||
ShuffleboardWidget(ShuffleboardContainer parent, String title) {
|
||||
super(parent, title);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,6 @@ public class DifferentialDrivetrainSim {
|
||||
*/
|
||||
@SuppressWarnings("LocalVariableName")
|
||||
public void update(double dtSeconds) {
|
||||
|
||||
// Update state estimate with RK4
|
||||
m_x = NumericalIntegration.rk4(this::getDynamics, m_x, m_u, dtSeconds);
|
||||
m_y = m_x;
|
||||
@@ -319,7 +318,6 @@ public class DifferentialDrivetrainSim {
|
||||
|
||||
@SuppressWarnings({"DuplicatedCode", "LocalVariableName", "ParameterName"})
|
||||
protected Matrix<N7, N1> getDynamics(Matrix<N7, N1> x, Matrix<N2, N1> u) {
|
||||
|
||||
// Because G can be factored out of B, we can divide by the old ratio and multiply
|
||||
// by the new ratio to get a new drivetrain model.
|
||||
var B = new Matrix<>(Nat.N4(), Nat.N2());
|
||||
|
||||
Reference in New Issue
Block a user