SITL: walking robot script direction fix

This commit is contained in:
ashvath100 2020-08-29 01:28:04 +05:30 committed by Randy Mackay
parent 9248272baa
commit e21e720b12
1 changed files with 4 additions and 1 deletions

View File

@ -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