Skip to content

Commit

Permalink
update road-runner-ftc fork
Browse files Browse the repository at this point in the history
  • Loading branch information
j5155 committed Sep 20, 2024
1 parent d1d2e3f commit f983193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TeamCode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ dependencies {
implementation "com.acmerobotics.roadrunner:core:1.0.0"
implementation "com.acmerobotics.roadrunner:actions:1.0.0"
implementation "com.acmerobotics.dashboard:dashboard:0.4.16"
implementation "com.github.jdhs-ftc:road-runner-ftc-otos:14c7f4ca9a"
implementation "com.github.jdhs-ftc:road-runner-ftc-otos:622d5b95a5"
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,7 @@ public PoseVelocity2d updatePoseEstimate() {

FlightRecorder.write("ESTIMATED_POSE", new PoseMessage(pose));

Pose2d velocity = pinpoint.getVelocity();
// RR localizer note
// "velocity.position" is a little weird
// it's because velocity is stored as a roadrunner pose2d right now
// maybe not ideal for this, probably I should change it to use a PoseVelocity2d directly instead
return new PoseVelocity2d(new Vector2d(velocity.position.x, velocity.position.y),velocity.heading.toDouble());
return pinpoint.getVelocity();
}


Expand Down

0 comments on commit f983193

Please sign in to comment.