Skip to content

Commit 42a5ec9

Browse files
tobifalkcassava
authored andcommitted
vtd: Set actuation after sensor update
1 parent 2c7f356 commit 42a5ec9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

optional/vtd/src/vtd_binding.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,6 @@ class VtdBinding : public cloe::Simulator {
393393
return sync.time() - sync.step_width();
394394
}
395395

396-
// Send items to TaskControl:
397-
for (auto v : vehicles_) {
398-
v->vtd_step_actuator(*scp_client_, config_.label_vehicle);
399-
}
400-
401396
// Process task control messages
402397
{
403398
timer::DurationTimer<timer::Milliseconds> t([this](timer::Milliseconds d) {
@@ -417,6 +412,11 @@ class VtdBinding : public cloe::Simulator {
417412
}
418413
}
419414

415+
// Send items to TaskControl:
416+
for (auto v : vehicles_) {
417+
v->vtd_step_actuator(*scp_client_, config_.label_vehicle);
418+
}
419+
420420
// Trigger VTD to simulation the next step
421421
{
422422
timer::DurationTimer<timer::Milliseconds> t(

0 commit comments

Comments
 (0)