path_following: Fix printf
authorErik Andresen <erik@vontaene.de>
Wed, 15 Jan 2020 07:10:17 +0000 (08:10 +0100)
committerErik Andresen <erik@vontaene.de>
Wed, 15 Jan 2020 07:10:17 +0000 (08:10 +0100)
src/path_following.cpp

index c06a084..0be1135 100644 (file)
@@ -208,7 +208,7 @@ class PathFollower
                ht_min_points = config.ht_min_points;
                px = cm_to_px_y(config.roi_y);
                if (px > 0 && px < img_vsize - roi_height) roi_y = px;
-               else ROS_ERROR("Bad roi_y position %.2fcm", roi_y);
+               else ROS_ERROR("Bad roi_y position %dcm", roi_y);
                road_distance_cm = config.road_distance_cm;
                lad_cm = config.lad_cm; 
                speed_m_s = config.speed_m_s;