Changeset 275 in flair-src for trunk/lib/FlairSensorActuator/src


Ignore:
Timestamp:
Dec 5, 2018, 4:53:39 PM (6 years ago)
Author:
Sanahuja Guillaume
Message:

correct bug for vpn delta time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/VrpnObject_impl.cpp

    r223 r275  
    143143  VrpnObject_impl *caller = reinterpret_cast<VrpnObject_impl *>(userdata);
    144144  Time time = GetTime();
    145   //Printf("%s %lld %lld\n",caller->self->ObjectName().c_str(),time,t.msg_time.tv_sec*1000000+t.msg_time.tv_usec);
    146   Time vrpnTime=t.msg_time.tv_sec*1000000000+t.msg_time.tv_usec*1000;
     145  //Printf("%s %lld %lld\n",caller->self->ObjectName().c_str(),time,(Time)t.msg_time.tv_sec*(Time)1000000+(Time)t.msg_time.tv_usec);
     146  Time vrpnTime=(Time)t.msg_time.tv_sec*(Time)1000000000+(Time)t.msg_time.tv_usec*(Time)1000;
    147147  Time deltaTime;
    148148  if(caller->previousTime!=TIME_INFINITE) {
Note: See TracChangeset for help on using the changeset viewer.