Changeset 218 in flair-src for trunk/lib/FlairSimulator/src
- Timestamp:
- Feb 20, 2018, 2:08:56 PM (7 years ago)
- Location:
- trunk/lib/FlairSimulator/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Model_impl.cpp
r214 r218 158 158 159 159 void Model_impl::mainloop(void) { 160 struct timeval _timestamp; 161 160 162 if (enable_opti->Value() == false) 161 163 return; 162 164 vrpn_gettimeofday(&_timestamp, NULL); 163 vrpn_Tracker::timestamp = _timestamp; 164 165 165 166 // change to vrpn reference 166 167 states_mutex->GetMutex(); -
trunk/lib/FlairSimulator/src/Simulator_impl.cpp
r162 r218 67 67 WaitPeriod(); 68 68 // printf("%lld\n",GetTime()); 69 mainloop();70 69 for (size_t i = 0; i < models.size(); i++) { 71 70 models.at(i)->pimpl_->mainloop(); 72 71 } 72 mainloop(); 73 73 } 74 74 } -
trunk/lib/FlairSimulator/src/unexported/Model_impl.h
r214 r218 104 104 flair::core::Mutex *states_mutex; 105 105 106 struct timeval _timestamp;107 106 void Run(void); 108 107 flair::core::Quaternion ComputeInitRotation(flair::core::Quaternion quat_in);
Note:
See TracChangeset
for help on using the changeset viewer.