mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
Merge branch 'main' into 2027
This commit is contained in:
@@ -120,8 +120,7 @@ class WPILIB_DLLEXPORT Odometry3d {
|
||||
const Pose3d& Update(const Rotation3d& gyroAngle,
|
||||
const WheelPositions& wheelPositions) {
|
||||
auto angle = gyroAngle + m_gyroOffset;
|
||||
auto angle_difference =
|
||||
(angle - m_previousAngle).GetQuaternion().ToRotationVector();
|
||||
auto angle_difference = (angle - m_previousAngle).ToVector();
|
||||
|
||||
auto twist2d =
|
||||
m_kinematics.ToTwist2d(m_previousWheelPositions, wheelPositions);
|
||||
|
||||
Reference in New Issue
Block a user