Skip to content

Commit

Permalink
Parse the rx and tx idle chars as floats (#729)
Browse files Browse the repository at this point in the history
As they are floating point values, we should not parse them into ints from the parameters.
  • Loading branch information
fmauch authored Oct 10, 2024
1 parent 82b678e commit dc545b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ur_robot_driver/src/hardware_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ bool HardwareInterface::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_hw
}
tool_comm_setup->setStopBits(stop_bits);

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

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

0 comments on commit dc545b5

Please sign in to comment.