Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander R. Hankin
EE194_Manduca_Simulator
Commits
b81d5baa
Commit
b81d5baa
authored
May 02, 2018
by
David A.. Werner
Browse files
Bugfix! First leg couldn't pull back
parent
b15c0195
Changes
1
Hide whitespace changes
Inline
Side-by-side
manduca/Manducas.py
View file @
b81d5baa
...
...
@@ -253,7 +253,7 @@ class Manduca(object):
M_forwards
=
spring_forwards
=
damp_forwards
=
0
# Compute the backward forces
if
prev_idx
>
0
:
# all but the first leg
if
prev_idx
>
=
0
:
# all but the first leg
M_backwards
=
current_muscles
[
prev_idx
]
spring_backwards
=
k
*
(
pos
[
curr_idx
]
-
pos
[
prev_idx
]
-
L0
)
damp_backwards
=
c
*
(
vel
[
curr_idx
]
-
vel
[
prev_idx
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment