diff --git a/src/rqt_robot_steering/robot_steering.py b/src/rqt_robot_steering/robot_steering.py index 4b5eae7..cb121cc 100644 --- a/src/rqt_robot_steering/robot_steering.py +++ b/src/rqt_robot_steering/robot_steering.py @@ -229,19 +229,19 @@ def _on_decrease_z_angular_pressed(self): def _on_max_x_linear_changed(self, value): self._widget.x_linear_slider.setMaximum( - value * RobotSteering.slider_factor) + int(value * RobotSteering.slider_factor)) def _on_min_x_linear_changed(self, value): self._widget.x_linear_slider.setMinimum( - value * RobotSteering.slider_factor) + int(value * RobotSteering.slider_factor)) def _on_max_z_angular_changed(self, value): self._widget.z_angular_slider.setMaximum( - value * RobotSteering.slider_factor) + int(value * RobotSteering.slider_factor)) def _on_min_z_angular_changed(self, value): self._widget.z_angular_slider.setMinimum( - value * RobotSteering.slider_factor) + int(value * RobotSteering.slider_factor)) def _on_strong_increase_x_linear_pressed(self): self._widget.x_linear_slider.setValue(