Skip to content

Commit

Permalink
Undo comment whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Apr 28, 2024
1 parent e5d224f commit 82b2967
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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);
}
Expand All @@ -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(
Expand Down

0 comments on commit 82b2967

Please sign in to comment.