Skip to content

Commit

Permalink
working choreo integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Shom770 committed Aug 5, 2024
1 parent e0fedf4 commit 8484c9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,9 @@ object AutonomousSelector {
AutonomousMode.TEST_AUTO_PATH ->
return WaitCommand(waitTime.inSeconds)
.andThen({
drivetrain.tempZeroGyroYaw(TestAutoPath.startingPose.rotation)
drivetrain.resetFieldFrameEstimator(
AllianceFlipUtil.apply(TestAutoPath.startingPose)
)
val flippedPose = AllianceFlipUtil.apply(TestAutoPath.startingPose)
drivetrain.tempZeroGyroYaw(flippedPose.rotation)
drivetrain.resetFieldFrameEstimator(flippedPose)
})
.andThen(TestAutoPath(drivetrain, superstructure))
else -> println("ERROR: unexpected auto mode: $mode")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private constructor(
drivetrain.targetPose =
targetPose.relativeTo(drivetrain.odomTField.asPose2d())

CustomLogger.recordOutput(
CustomLogger.recordDebugOutput(
"Pathfollow/targetPose",
targetPose.pose2d
)
Expand Down

0 comments on commit 8484c9d

Please sign in to comment.