Changeset 428 in flair-src for trunk/lib/FlairSimulator/src
- Timestamp:
- Jun 10, 2021, 4:35:17 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSimulator/src/Model_impl.cpp
r375 r428 314 314 states_mutex->GetMutex(); 315 315 self->CalcModel(); 316 317 Vector3Df acc(self->state[0].Vel.x-self->state[-1].Vel.x, 318 self->state[0].Vel.y-self->state[-1].Vel.y, 319 self->state[0].Vel.z-self->state[-1].Vel.z); 320 acc=acc/dT->Value()+Vector3Df(0,0,-9.81); 321 acc.Rotate(self->state[0].Quat.GetConjugate()); 316 322 317 323 output->GetMutex(); … … 329 335 output->SetValueNoMutex(11, 0, self->state[0].Vel.y); 330 336 output->SetValueNoMutex(12, 0, self->state[0].Vel.z); 331 //todo: put acc and mag332 output->SetValueNoMutex(1 3, 0, 0);333 output->SetValueNoMutex(1 4, 0, 0);334 output->SetValueNoMutex(15, 0, 0);337 output->SetValueNoMutex(13, 0, acc.x); 338 output->SetValueNoMutex(14, 0, acc.y); 339 output->SetValueNoMutex(15, 0, acc.z); 340 //todo: put mag 335 341 output->SetValueNoMutex(16, 0, 0); 336 342 output->SetValueNoMutex(17, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.