mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[wpimath] Add Rotation3d rotation vector getter (#7564)
The code churn in Java is just making the function order consistent between languages.
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