Skip to content

Commit

Permalink
Fixed Odom/ResetCountdown not resetting anymore if next frame is also…
Browse files Browse the repository at this point in the history
… bad.
  • Loading branch information
matlabbe committed Mar 18, 2024
1 parent 264c560 commit 79dc180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions corelib/src/Odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ Transform Odometry::process(SensorData & data, const Transform & guessIn, Odomet
{
UWARN("Odometry automatically reset to latest pose!");
this->reset(_pose);
_resetCurrentCount = _resetCountdown;
if(info)
{
*info = OdometryInfo();
Expand Down

0 comments on commit 79dc180

Please sign in to comment.