Skip to content

Commit 61420b0

Browse files
committed
disable hardcoded frequence condition
1 parent 08e2a55 commit 61420b0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/LMS1xx_node.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,9 @@ int main(int argc, char **argv)
4545
outputRange = laser.getScanOutputRange();
4646
}
4747

48-
//check if laser is fully initialized, else reconnect
49-
//assuming fully initialized => scaningFrequency=5000
50-
if (cfg.scaningFrequency != 5000) {
51-
laser.disconnect();
5248
ROS_INFO("Waiting for laser to initialize...");
53-
}
5449

55-
} while (!laser.isConnected() || cfg.scaningFrequency != 5000);
50+
} while (!laser.isConnected());
5651

5752
if (laser.isConnected()) {
5853
ROS_INFO("Connected to laser.");

0 commit comments

Comments
 (0)