mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Rework odometry APIs to improve feature parity (#4645)
Co-authored-by: Ryan Blue <ryanzblue@gmail.com>
This commit is contained in:
@@ -103,7 +103,8 @@ frc::Pose2d DriveSubsystem::GetPose() {
|
||||
|
||||
void DriveSubsystem::ResetOdometry(frc::Pose2d pose) {
|
||||
m_odometry.ResetPosition(
|
||||
pose, units::degree_t{GetHeading()},
|
||||
GetHeading(),
|
||||
{m_frontLeft.GetPosition(), m_frontRight.GetPosition(),
|
||||
m_rearLeft.GetPosition(), m_rearRight.GetPosition()});
|
||||
m_rearLeft.GetPosition(), m_rearRight.GetPosition()},
|
||||
pose);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user