Commit 83312f8e authored by oscar's avatar oscar

提交更新

parent 9365adeb
......@@ -134,7 +134,8 @@ void Track3D::Predict()
uint64_t interval = 100;
if (m_obj && m_lastLastTimestamp != 0 && m_obj->frame > m_lastLastTimestamp)
interval = m_obj->frame - m_lastLastTimestamp;
m_lastLastTimestamp = m_obj->frame;
if(m_obj)
m_lastLastTimestamp = m_obj->frame;
float v_rate = interval / 100;
if (v_rate > 1.5 || v_rate < 0.5)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment