Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Improvements to logs (dont crash it on startup)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatribotsProgramming committed Oct 25, 2023
1 parent 1849090 commit 9466e2f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/hardware/Arm.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public class Arm /* implements Loggable */ {
private double armYReference = 0;

// The DESIRED rotation of the arms
private double upperReferenceAngle = 0;
private double lowerReferenceAngle = 0;
private double upperReferenceAngle = Units.degreesToRadians(200);
private double lowerReferenceAngle = Units.degreesToRadians(122);

private boolean armsAtDesiredPosition = false;

Expand Down
5 changes: 1 addition & 4 deletions src/main/java/hardware/Swerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ public Swerve() {
setBrakeMode();

SmartDashboard.putNumberArray("Swerve/RealStates", new double[] {
frontLeft.getState().angle.getDegrees(), frontLeft.getState().speedMetersPerSecond,
frontRight.getState().angle.getDegrees(), frontRight.getState().speedMetersPerSecond,
rearLeft.getState().angle.getDegrees(), rearLeft.getState().speedMetersPerSecond,
rearRight.getState().angle.getDegrees(), rearRight.getState().speedMetersPerSecond
0, 0, 0, 0, 0, 0, 0, 0
});
SmartDashboard.putNumberArray("Swerve/DesiredStates", desiredModuleStates);
SmartDashboard.putNumber("Swerve/RobotRotation", getPose().getRotation().getDegrees());
Expand Down

0 comments on commit 9466e2f

Please sign in to comment.