Skip to content

Commit

Permalink
[IGN] bug fix - last controller update time should not be updated if …
Browse files Browse the repository at this point in the history
…state is not sent (ArduPilot#5)

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring authored Sep 22, 2021
1 parent cda31ad commit 56a6faf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ArduPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,8 @@ void ignition::gazebo::systems::ArduPilotPlugin::PostUpdate(
double t = std::chrono::duration_cast<std::chrono::duration<double>>(_info.simTime).count();
this->SendState(t, _ecm);
}
this->dataPtr->lastControllerUpdateTime = _info.simTime;
}

this->dataPtr->lastControllerUpdateTime = _info.simTime;
}

/////////////////////////////////////////////////
Expand Down

0 comments on commit 56a6faf

Please sign in to comment.