Skip to content

Commit

Permalink
Throttle error message on inconsistent encoder timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBowman committed Jan 31, 2023
1 parent 4178507 commit f014caf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions doc/release/yarp_3_7/throttle_consistency_checker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
throttle_consistency_checker {#yarp_3_7}
-----------

### Devices

#### `controlBoard_nws_yarp`

* The error message upon inconsistent encoder timestamps has been throttled.
3 changes: 1 addition & 2 deletions src/devices/ControlBoardWrapper/ControlBoard_nws_yarp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,7 @@ void ControlBoard_nws_yarp::run()
{
if (std::abs(times[0] - tt) > 1.0)
{
yCError(CONTROLBOARD, "Encoder Timestamps are not consistent! Data will not be published.");
yarp::sig::Vector _data(subdevice_joints);
yCErrorThrottle(CONTROLBOARD, 1.0, "Encoder timestamps are not consistent! Data will not be published.");
return;
}
}
Expand Down

0 comments on commit f014caf

Please sign in to comment.