mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpilib] Reset odometry in path following examples (#2859)
This commit is contained in:
committed by
GitHub
parent
2ef67f20a7
commit
cfac22b4c0
@@ -83,6 +83,9 @@ frc2::Command* RobotContainer::GetAutonomousCommand() {
|
||||
|
||||
{&m_drive});
|
||||
|
||||
// Reset odometry to the starting pose of the trajectory.
|
||||
m_drive.ResetOdometry(exampleTrajectory.InitialPose());
|
||||
|
||||
// no auto
|
||||
return new frc2::SequentialCommandGroup(
|
||||
std::move(swerveControllerCommand), std::move(swerveControllerCommand),
|
||||
|
||||
Reference in New Issue
Block a user