change wait to 1 ms

This commit is contained in:
Sem van der Hoeven
2023-03-03 12:23:20 +00:00
parent 015d7d7596
commit 353bf74930

View File

@@ -13,7 +13,7 @@ class HeightSensorPublisher : public rclcpp::Node
{
publisher_ = this->create_publisher<std_msgs::msg::String>("height_sensor", 10);
timer_ = this->create_wall_timer(
500ms, std::bind(&HeightSensorPublisher::timer_callback, this));
1ms, std::bind(&HeightSensorPublisher::timer_callback, this));
RCLCPP_INFO(this->get_logger(), "Constructor of height sensor publisher");
setup_serial_port();