diff --git a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/armsimulation/subsystems/Arm.java b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/armsimulation/subsystems/Arm.java index 9ecb67cea64..fcf53d5f500 100644 --- a/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/armsimulation/subsystems/Arm.java +++ b/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/armsimulation/subsystems/Arm.java @@ -39,8 +39,7 @@ public class Arm implements AutoCloseable { private final PWMSparkMax m_motor = new PWMSparkMax(Constants.kMotorPort); // Simulation classes help us simulate what's going on, including gravity. - // This arm sim represents an arm that can travel from -75 degrees (rotated down - // front) + // This arm sim represents an arm that can travel from -75 degrees (rotated down front) // to 255 degrees (rotated down in the back). private final SingleJointedArmSim m_armSim = new SingleJointedArmSim( @@ -79,8 +78,7 @@ public Arm() { SmartDashboard.putData("Arm Sim", m_mech2d); m_armTower.setColor(new Color8Bit(Color.kBlue)); - // Set the Arm position setpoint and P constant to Preferences if the keys don't - // already exist + // Set the Arm position setpoint and P constant to Preferences if the keys don't already exist Preferences.initDouble(Constants.kArmPositionKey, m_armSetpointDegrees); Preferences.initDouble(Constants.kArmPKey, m_armKp); } @@ -94,8 +92,7 @@ public void simulationPeriodic() { // Next, we update it. The standard loop time is 20ms. m_armSim.update(0.020); - // Finally, we set our simulated encoder's readings and simulated battery - // voltage + // Finally, we set our simulated encoder's readings and simulated battery voltage m_encoderSim.setDistance(m_armSim.getAngleRads()); // SimBattery estimates loaded battery voltages RoboRioSim.setVInVoltage(