From 1d43339c009e196774937b4d47c003eef15e5d4a Mon Sep 17 00:00:00 2001 From: "Wayne C. Gramlich" Date: Wed, 13 May 2015 19:33:21 -0700 Subject: [PATCH] Fixed some typos. --- ros_arduino_python/src/ros_arduino_python/arduino_driver.py | 2 +- ros_arduino_python/src/ros_arduino_python/base_controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ros_arduino_python/src/ros_arduino_python/arduino_driver.py b/ros_arduino_python/src/ros_arduino_python/arduino_driver.py index b9b6b2a..ab48748 100755 --- a/ros_arduino_python/src/ros_arduino_python/arduino_driver.py +++ b/ros_arduino_python/src/ros_arduino_python/arduino_driver.py @@ -95,7 +95,7 @@ class Arduino: ''' self.port.close() - def motors_configure(motors_reversed = False, + def motors_configure(self, motors_reversed = False, left_motor_reversed = False, right_motor_reversed = False): self.motors_reversed = motors_reversed self.left_motor_reversed = left_motor_reversed diff --git a/ros_arduino_python/src/ros_arduino_python/base_controller.py b/ros_arduino_python/src/ros_arduino_python/base_controller.py index 7c3b29c..2d37526 100755 --- a/ros_arduino_python/src/ros_arduino_python/base_controller.py +++ b/ros_arduino_python/src/ros_arduino_python/base_controller.py @@ -52,7 +52,7 @@ class BaseController: self.motors_reversed = rospy.get_param("~motors_reversed", False) self.left_motor_reversed = rospy.get_param("~left_motor_reversed", False) self.right_motor_reversed = rospy.get_param("~right_motor_reversed", False) - arduino.motors_configure(self.motors_reversed, self.left_motor_reverse, self.right_motor_reverse) + arduino.motors_configure(self.motors_reversed, self.left_motor_reversed, self.right_motor_reversed) # Set up PID parameters and check for missing values self.setup_pid(pid_params)