Skip to content

Commit

Permalink
Fixing kalman timer wrong measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmn committed Feb 8, 2021
1 parent 96f0d3b commit 099738f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Suassuna-Dummy.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ QT += core \
TEMPLATE = app
DESTDIR = ../bin
TARGET = Suassuna-Dummy
VERSION = 1.0.1
VERSION = 1.0.2

CONFIG += c++14 console
CONFIG -= app_bundle
Expand Down
4 changes: 2 additions & 2 deletions src/entities/vision/filters/kalman/kalmanfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void KalmanFilter::iterate(const Position &pos) {

// Get iteration time
_timer.stop();
const float T = _timer.getMiliSeconds();
const float T = _timer.getSeconds();
_timer.start();

// Initial states
Expand Down Expand Up @@ -122,7 +122,7 @@ void KalmanFilter::predict() {

// Get iteration time
_timer.stop();
const float T = _timer.getMiliSeconds()*1E-3;
const float T = _timer.getSeconds();
_timer.start();

// Check initial states, if do not have, quit. cannot make prevision...
Expand Down

0 comments on commit 099738f

Please sign in to comment.