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 (#5)

Signed-off-by: Rhys Mainwaring <[email protected]>
  • Loading branch information
srmainwaring committed Apr 14, 2022
1 parent c9443a0 commit c0ca003
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 c0ca003

Please sign in to comment.