mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[wpimath] Reset prev_time on pose estimator reset (#4283)
This commit is contained in:
committed by
GitHub
parent
8b6df88783
commit
d9f9cd1140
@@ -59,6 +59,8 @@ void frc::MecanumDrivePoseEstimator::ResetPosition(
|
||||
|
||||
m_observer.SetXhat(PoseTo3dVector(pose));
|
||||
|
||||
m_prevTime = -1_s;
|
||||
|
||||
m_gyroOffset = pose.Rotation() - gyroAngle;
|
||||
m_previousAngle = pose.Rotation();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user