Remove extra newlines after open curly braces (NFC) (#3471)

This commit is contained in:
Tyler Veness
2021-07-09 00:41:30 -04:00
committed by GitHub
parent a4233e1a16
commit 9d68d95825
47 changed files with 0 additions and 67 deletions

View File

@@ -48,7 +48,6 @@ public class LinearQuadraticRegulatorTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testLQROnElevator() {
var qElms = VecBuilder.fill(0.02, 0.4);
var rElms = VecBuilder.fill(12.0);
var dt = 0.00505;
@@ -63,7 +62,6 @@ public class LinearQuadraticRegulatorTest {
@Test
public void testFourMotorElevator() {
var dt = 0.020;
var plant =
@@ -80,7 +78,6 @@ public class LinearQuadraticRegulatorTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testLQROnArm() {
var motors = DCMotor.getVex775Pro(2);
var m = 4.0;

View File

@@ -54,7 +54,6 @@ public class LinearSystemLoopTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testStateSpaceEnabled() {
m_loop.reset(VecBuilder.fill(0, 0));
Matrix<N2, N1> references = VecBuilder.fill(2.0, 0.0);
var constraints = new TrapezoidProfile.Constraints(4, 3);
@@ -84,7 +83,6 @@ public class LinearSystemLoopTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testFlywheelEnabled() {
LinearSystem<N1, N1, N1> plant =
LinearSystemId.createFlywheelSystem(DCMotor.getNEO(2), 0.00289, 1.0);
KalmanFilter<N1, N1, N1> observer =
@@ -113,7 +111,6 @@ public class LinearSystemLoopTest {
var time = 0.0;
while (time < 10) {
if (time > 10) {
break;
}

View File

@@ -64,7 +64,6 @@ public class KalmanFilterTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testElevatorKalmanFilter() {
var Q = VecBuilder.fill(0.05, 1.0);
var R = VecBuilder.fill(0.0001);
@@ -73,7 +72,6 @@ public class KalmanFilterTest {
@Test
public void testSwerveKFStationary() {
var random = new Random();
var filter =
@@ -121,7 +119,6 @@ public class KalmanFilterTest {
@Test
public void testSwerveKFMovingWithoutAccelerating() {
var random = new Random();
var filter =
@@ -178,7 +175,6 @@ public class KalmanFilterTest {
@Test
@SuppressWarnings("LocalVariableName")
public void testSwerveKFMovingOverTrajectory() {
var random = new Random();
var filter =

View File

@@ -171,7 +171,6 @@ public class UnscentedKalmanFilterTest {
double totalTime = trajectory.getTotalTimeSeconds();
for (int i = 0; i < (totalTime / dtSeconds); i++) {
ref = trajectory.sample(dtSeconds * i);
double vl = ref.velocityMetersPerSecond * (1 - (ref.curvatureRadPerMeter * rbMeters));
double vr = ref.velocityMetersPerSecond * (1 + (ref.curvatureRadPerMeter * rbMeters));

View File

@@ -35,7 +35,6 @@ class MecanumDriveKinematicsTest {
@Test
void testStraightLineForwardKinematicsKinematics() {
var wheelSpeeds = new MecanumDriveWheelSpeeds(3.536, 3.536, 3.536, 3.536);
var moduleStates = m_kinematics.toChassisSpeeds(wheelSpeeds);
@@ -59,7 +58,6 @@ class MecanumDriveKinematicsTest {
@Test
void testStrafeForwardKinematicsKinematics() {
var wheelSpeeds = new MecanumDriveWheelSpeeds(-2.828427, 2.828427, 2.828427, -2.828427);
var moduleStates = m_kinematics.toChassisSpeeds(wheelSpeeds);
@@ -152,7 +150,6 @@ class MecanumDriveKinematicsTest {
@Test
void testOffCenterRotationTranslationForwardKinematicsKinematics() {
var wheelSpeeds = new MecanumDriveWheelSpeeds(2.12, 21.92, -12.02, 36.06);
var moduleStates = m_kinematics.toChassisSpeeds(wheelSpeeds);

View File

@@ -52,7 +52,6 @@ class SwerveDriveKinematicsTest {
@Test
void testStraightStrafeInverseKinematics() {
ChassisSpeeds speeds = new ChassisSpeeds(0, 5, 0);
var moduleStates = m_kinematics.toSwerveModuleStates(speeds);
@@ -80,7 +79,6 @@ class SwerveDriveKinematicsTest {
@Test
void testTurnInPlaceInverseKinematics() {
ChassisSpeeds speeds = new ChassisSpeeds(0, 0, 2 * Math.PI);
var moduleStates = m_kinematics.toSwerveModuleStates(speeds);
@@ -119,7 +117,6 @@ class SwerveDriveKinematicsTest {
@Test
void testOffCenterCORRotationInverseKinematics() {
ChassisSpeeds speeds = new ChassisSpeeds(0, 0, 2 * Math.PI);
var moduleStates = m_kinematics.toSwerveModuleStates(speeds, m_fl);
@@ -188,7 +185,6 @@ class SwerveDriveKinematicsTest {
*/
@Test
void testOffCenterCORRotationAndTranslationInverseKinematics() {
ChassisSpeeds speeds = new ChassisSpeeds(0.0, 3.0, 1.5);
var moduleStates = m_kinematics.toSwerveModuleStates(speeds, new Translation2d(24, 0));

View File

@@ -41,7 +41,6 @@ class LinearSystemIDTest {
@Test
public void testElevatorSystem() {
var model = LinearSystemId.createElevatorSystem(DCMotor.getNEO(2), 5, 0.05, 12);
assertTrue(
model.getA().isEqual(Matrix.mat(Nat.N2(), Nat.N2()).fill(0, 1, 0, -99.05473), 0.001));

View File

@@ -16,7 +16,6 @@ public class NumericalIntegrationTest {
@Test
@SuppressWarnings({"ParameterName", "LocalVariableName"})
public void testExponential() {
Matrix<N1, N1> y0 = VecBuilder.fill(0.0);
//noinspection SuspiciousNameCombination
@@ -36,7 +35,6 @@ public class NumericalIntegrationTest {
@Test
@SuppressWarnings({"ParameterName", "LocalVariableName"})
public void testExponentialAdaptive() {
Matrix<N1, N1> y0 = VecBuilder.fill(0.0);
//noinspection SuspiciousNameCombination