Skip to content
Snippets Groups Projects
Commit 62eb8e94 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Make updateDt() return the dt_

parent 06f31603
No related branches found
No related tags found
1 merge request!157Kfpackmanager
...@@ -431,7 +431,7 @@ bool ProcessorMotion::keyFrameCallback(FrameBasePtr _new_keyframe, const Scalar& ...@@ -431,7 +431,7 @@ bool ProcessorMotion::keyFrameCallback(FrameBasePtr _new_keyframe, const Scalar&
void ProcessorMotion::integrateOneStep() void ProcessorMotion::integrateOneStep()
{ {
// Set dt // Set dt
updateDt(); dt_ = updateDt();
// get vector of parameters to calibrate // get vector of parameters to calibrate
calib_ = getBuffer().getCalibrationPreint(); calib_ = getBuffer().getCalibrationPreint();
......
...@@ -205,7 +205,7 @@ class ProcessorMotion : public ProcessorBase ...@@ -205,7 +205,7 @@ class ProcessorMotion : public ProcessorBase
// Helper functions: // Helper functions:
protected: protected:
void updateDt(); Scalar updateDt();
void integrateOneStep(); void integrateOneStep();
void splitBuffer(const TimeStamp& _t_split, MotionBuffer& _oldest_part); void splitBuffer(const TimeStamp& _t_split, MotionBuffer& _oldest_part);
void reintegrateBuffer(CaptureMotionPtr _capture_ptr); void reintegrateBuffer(CaptureMotionPtr _capture_ptr);
...@@ -516,9 +516,9 @@ inline bool ProcessorMotion::isMotion() ...@@ -516,9 +516,9 @@ inline bool ProcessorMotion::isMotion()
return true; return true;
} }
inline void ProcessorMotion::updateDt() inline Scalar ProcessorMotion::updateDt()
{ {
dt_ = incoming_ptr_->getTimeStamp() - getBuffer().get().back().ts_; return dt_ = incoming_ptr_->getTimeStamp() - getBuffer().get().back().ts_;
} }
inline const MotionBuffer& ProcessorMotion::getBuffer() const inline const MotionBuffer& ProcessorMotion::getBuffer() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment