[wpimath] Add constructors to pose estimators with default standard deviations (#4754)

This commit is contained in:
superpenguin612
2022-12-03 12:46:10 -05:00
committed by GitHub
parent 13cdc29382
commit 37e969b41a
8 changed files with 166 additions and 0 deletions

View File

@@ -51,6 +51,13 @@ frc::MecanumDrivePoseEstimator::InterpolationRecord::Interpolate(
}
}
frc::MecanumDrivePoseEstimator::MecanumDrivePoseEstimator(
MecanumDriveKinematics& kinematics, const Rotation2d& gyroAngle,
const MecanumDriveWheelPositions& wheelPositions, const Pose2d& initialPose)
: MecanumDrivePoseEstimator{kinematics, gyroAngle,
wheelPositions, initialPose,
{0.1, 0.1, 0.1}, {0.45, 0.45, 0.45}} {}
frc::MecanumDrivePoseEstimator::MecanumDrivePoseEstimator(
MecanumDriveKinematics& kinematics, const Rotation2d& gyroAngle,
const MecanumDriveWheelPositions& wheelPositions, const Pose2d& initialPose,