]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - scripts/wt_node.py
ekf: gps fixes
[ros_wild_thumper.git] / scripts / wt_node.py
index 4064fb89a364ec91e9aaa7c9c5da2c8fe5607ade..5056107206766930273850efc4dc6a8ce579a222 100755 (executable)
@@ -65,10 +65,10 @@ class MoveBase:
                (roll, pitch, yaw) = tf.transformations.euler_from_quaternion(msg.orientation.__getstate__())
                if pitch > 30*pi/180:
                        val = (100.0/65)*abs(pitch)*180/pi
-                       self.set_motor_handicap(0, int(val))
+                       self.set_motor_handicap(int(val), 0)
                elif pitch < -30*pi/180:
                        val = (100.0/65)*abs(pitch)*180/pi
-                       self.set_motor_handicap(int(val), 0)
+                       self.set_motor_handicap(0, int(val))
                else:
                        self.set_motor_handicap(0, 0)