Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Reduce timeout observation window to 5 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jan 23, 2024
1 parent 901bba0 commit e4a89ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void Node::init_cyphal_heartbeat_check()
auto const now = std::chrono::steady_clock::now();
auto const duration_since_last_heartbeat = (now - crc07_prev_cyphal_heartbeat);

if (std::chrono::duration_cast<std::chrono::seconds>(duration_since_last_heartbeat) > std::chrono::seconds(10))
if (std::chrono::duration_cast<std::chrono::seconds>(duration_since_last_heartbeat) > std::chrono::seconds(5))
{
RCLCPP_ERROR(get_logger(), "cyphal robot controller 07 offline since %ld seconds.", std::chrono::duration_cast<std::chrono::seconds>(duration_since_last_heartbeat).count());
}
Expand Down

0 comments on commit e4a89ea

Please sign in to comment.