From e21e720b12d90c618a47d6ddf8b74c00a059a97f Mon Sep 17 00:00:00 2001 From: ashvath100 Date: Sat, 29 Aug 2020 01:28:04 +0530 Subject: [PATCH] SITL: walking robot script direction fix --- libraries/SITL/examples/JSON/pybullet/walking_robot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/SITL/examples/JSON/pybullet/walking_robot.py b/libraries/SITL/examples/JSON/pybullet/walking_robot.py index 2b89cae322..441904192f 100644 --- a/libraries/SITL/examples/JSON/pybullet/walking_robot.py +++ b/libraries/SITL/examples/JSON/pybullet/walking_robot.py @@ -38,7 +38,10 @@ p.changeDynamics(FixedBase,-1,lateralFriction=1., last_angles = [0.0] * 12 force = [500] * 12 -servo_direction = [1,1,1,-1,-1,-1,-1,-1,1,1,1,-1] +servo_direction = [1,-1, 1, + 1, 1,-1, + 1,-1, 1, + 1, 1,-1] def control_joints(pwm): '''control a joint based bot''' global last_angles