Skip to content

Commit dc545b5

Browse files
author
Felix Exner (fexner)
authored
Parse the rx and tx idle chars as floats (#729)
As they are floating point values, we should not parse them into ints from the parameters.
1 parent 82b678e commit dc545b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ur_robot_driver/src/hardware_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ bool HardwareInterface::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_hw
247247
}
248248
tool_comm_setup->setStopBits(stop_bits);
249249

250-
int rx_idle_chars;
250+
float rx_idle_chars;
251251
// Number of idle chars for the RX unit used for tool communication. Will be set as soon as the UR-Program on the
252252
// robot is started. Valid values: min=1.0, max=40.0
253253
//
@@ -261,7 +261,7 @@ bool HardwareInterface::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_hw
261261
tool_comm_setup->setRxIdleChars(rx_idle_chars);
262262
tool_comm_setup->setParity(static_cast<urcl::Parity>(parity));
263263

264-
int tx_idle_chars;
264+
float tx_idle_chars;
265265
// Number of idle chars for the TX unit used for tool communication. Will be set as soon as the UR-Program on the
266266
// robot is started. Valid values: min=0.0, max=40.0
267267
//

0 commit comments

Comments
 (0)