Skip to content

Fixed model - #80

Merged
TaylerUva merged 1 commit into
mainfrom
sim-fix
Aug 8, 2026
Merged

Fixed model#80
TaylerUva merged 1 commit into
mainfrom
sim-fix

Conversation

@TaylerUva

Copy link
Copy Markdown
Member

Co-authored-by: BrodyKarr <145169276+BrodyKarr@users.noreply.github.com>
Co-authored-by: jaymendo670-png <244560677+jaymendo670-png@users.noreply.github.com>
Co-authored-by: Justinpham17386769 <244249272+Justinpham17386769@users.noreply.github.com>
Co-authored-by: lameesnotlame <258483139+lameesnotlame@users.noreply.github.com>
Co-authored-by: Tej shah <187054380+Tejshah88@users.noreply.github.com>
Co-authored-by: Yutong Zhu <176576491+Wu-Fan-529@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 8, 2026 18:06
@TaylerUva
TaylerUva requested a review from a team as a code owner August 8, 2026 18:06
@TaylerUva TaylerUva linked an issue Aug 8, 2026 that may be closed by this pull request
@TaylerUva
TaylerUva merged commit df2e9dc into main Aug 8, 2026
2 checks passed
@TaylerUva
TaylerUva deleted the sim-fix branch August 8, 2026 18:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the RobotPoses subsystem’s 3D model pose math by introducing explicit turret/hood pivot points and chaining the hood pose off the turret pose to better reflect the robot’s mechanism kinematics.

Changes:

  • Added non-zero Transform3d pivot points for the turret and hood.
  • Updated hood pose computation to start from model1Turret instead of Pose3d.kZero.
Suppressed comments (1)

src/main/java/frc/robot/subsystems/RobotPoses.java:42

  • These hood pivot offsets are hardcoded numeric literals in a subsystem. Per team conventions, fixed geometry dimensions should be stored as typed Distance constants in constants/ and referenced from here.
  Transform3d hoodPivotPoint = new Transform3d(
      Units.Inches.of(-11.75),
      Units.Inches.of(6.5),
      Units.Inches.of(15.5),
      Rotation3d.kZero);

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +33 to +37
Transform3d turretPivotPoint = new Transform3d(
Units.Inches.of(-6.5),
Units.Inches.of(6.5),
Units.Inches.of(13.5),
Rotation3d.kZero);
Comment on lines +74 to 75
model2Hood = model1Turret
.rotateAround(Pose3d.kZero.plus(hoodPivotPoint).getTranslation(), hoodRotation3d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hood and turret are wrong in sim

2 participants