decrease timer delay

This commit is contained in:
Sem van der Hoeven
2023-03-03 14:45:26 +01:00
parent e5ddab280e
commit 345e796392

View File

@@ -13,7 +13,7 @@ public:
{
publisher_ = this->create_publisher<std_msgs::msg::String>("height_sensor", 10);
timer_ = this->create_wall_timer(
50ms, std::bind(&HeightSensorPublisher::timer_callback, this));
5ms, std::bind(&HeightSensorPublisher::timer_callback, this));
RCLCPP_INFO(this->get_logger(), "Starting height sensor publisher");
setup_serial_port();