mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-29 20:18:31 -04:00
SITL: walking robot script direction fix
This commit is contained in:
parent
9248272baa
commit
e21e720b12
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user