Skip to content

Commit

Permalink
Merge pull request #87 from jontje/always_pass_feedback
Browse files Browse the repository at this point in the history
Make EGMControllerInterface always pass feedback to user
  • Loading branch information
gavanderhoorn authored Mar 13, 2020
2 parents ea8d239 + 5182d43 commit 5efd20a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/egm_controller_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ const std::string& EGMControllerInterface::callback(const UDPServerData& server_
}
else
{
// Make the current inputs available (to the external control loop), and notify that it is available.
controller_motion_.writeInputs(inputs_.current());

if (inputs_.isFirstMessage() || inputs_.statesOk())
{
// Make the current inputs available (to the external control loop), and notify that it is available.
controller_motion_.writeInputs(inputs_.current());

// Wait for new outputs (from the external control loop), or until a timeout occurs.
controller_motion_.readOutputs(&outputs_.current);
}
Expand Down

0 comments on commit 5efd20a

Please sign in to comment.