Skip to content

Commit

Permalink
move log target pose to DrivePathCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
00magikarp committed Jul 5, 2024
1 parent f448483 commit 7d30d77
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ private constructor(
drivetrain.targetPose =
Pose2d(Pose2dWPILIB(desiredState.poseMeters.translation, desiredRotation.position))

CustomLogger.recordOutput("Odometry/targetPose", drivetrain.targetPose.pose2d)

Logger.recordOutput(
"Pathfollow/target",
Pose2dWPILIB.struct,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ class Drivetrain(private val gyroIO: GyroIO, val swerveModules: List<SwerveModul
CustomLogger.recordOutput("Drivetrain/ModuleStates", *measuredStates.toTypedArray())
CustomLogger.recordOutput("Drivetrain/SetpointStates", *setPointStates.toTypedArray())

CustomLogger.recordOutput("Odometry/pose", odomTRobot.pose2d)
CustomLogger.recordOutput(
"Odometry/pose3d",
Pose3d(
Expand All @@ -268,8 +267,6 @@ class Drivetrain(private val gyroIO: GyroIO, val swerveModules: List<SwerveModul

CustomLogger.recordOutput("FieldFrameEstimator/odomTField", odomTField.transform2d)

CustomLogger.recordOutput("Odometry/targetPose", targetPose.pose2d)

// Log the current state
CustomLogger.recordOutput("Drivetrain/currentState", currentState.toString())
// Log the current state
Expand Down Expand Up @@ -558,6 +555,7 @@ class Drivetrain(private val gyroIO: GyroIO, val swerveModules: List<SwerveModul
fieldFrameEstimator.addVisionData(visionData)
}


fun addSpeakerVisionData(visionData: TimestampedTrigVisionUpdate) {
fieldFrameEstimator.addSpeakerVisionData(visionData)
}
Expand Down

0 comments on commit 7d30d77

Please sign in to comment.