Skip to content

Commit

Permalink
Forget something to commit last time
Browse files Browse the repository at this point in the history
  • Loading branch information
Gai4phag3 committed Jan 23, 2025
1 parent 57c7ffd commit 9c5cc57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/superstructure/SSPose.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public void copy(SSPose pose) {

public EEPose getEEPose() {
double x = Constants.armlength * Math.cos(this.alpha);
double y = Constants.armlength * Math.sin(this.alpha) * Math.cos(this.beta) + Math.cos(this.beta) * Constants.armoffset_in;
double z = Constants.armlength * Math.sin(this.alpha) * Math.sin(this.beta) + Constants.elevheighttoarm - Math.sin(this.beta) * Constants.armoffset_in;
double y = Constants.armlength * Math.sin(this.alpha) * Math.cos(this.beta);
double z = Constants.armlength * Math.sin(this.alpha) * Math.sin(this.beta) + Constants.elevheighttoarm;

double roll = 0.0;
double angle_from_horizontal = Math.asin(Constants.armlength * Math.sin(this.alpha) * Math.sin(this.beta) - Constants.armoffset_in * Math.sin(this.beta));
double angle_from_horizontal = Math.asin(Constants.armlength * Math.sin(this.alpha) * Math.sin(this.beta));

return new EEPose(x, y, z, roll, angle_from_horizontal);
}
Expand Down

0 comments on commit 9c5cc57

Please sign in to comment.