Skip to content

Commit

Permalink
Don't print so much - PotatoPeeler3000
Browse files Browse the repository at this point in the history
  • Loading branch information
ihmc-rosie committed Aug 27, 2024
1 parent c43e6ea commit 6c26346
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void timestampChanged(long latestTimeStampFromController)
// Update the latest timestamp from the controller
// Note: we don't always get the timestamps on time, because of networking and such, we need to account for that when saving the frame
this.latestTimeStampFromController = latestTimeStampFromController;
if (timeStampFromControllerCounter == 5000) // This only prints once every 5000 timestamps to not blow up the terminal
if (timeStampFromControllerCounter == 10000) // This only prints once every 10000 timestamps to not blow up the terminal
{
timeStampFromControllerCounter = 0;
LogTools.warn("For Device: {} From Controller (latestTimeStampFromController)={}", this.deviceNumber, this.latestTimeStampFromController);
Expand Down Expand Up @@ -188,7 +188,7 @@ public void receivedFrameAtTime(long hardwareTime, long recorderTimeStamp, long
// TODO check for duplicate timestamps from the controller, and interpolate to a reasonable guess of what the controller time might be
// Could check the last values from controller and see on average how much time goes in between them, and then add that to get the expected
// that we want to record with.
if (framesReceivedFromCameraCounter % 500 == 0) // This only prints once every 500 frames to not blow up the terminal
if (framesReceivedFromCameraCounter % 600 == 0) // This only prints once every 600 frames to not blow up the terminal
{
LogTools.info("----- Saving the current frame at the current controller timestamp -----");
LogTools.info("Camera Device Number: {}, at Frame: {},", deviceNumber, framesReceivedFromCameraCounter);
Expand Down

0 comments on commit 6c26346

Please sign in to comment.