Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed test for worm to move init pose. #25

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions rcb4/armh7interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,9 @@ def free(self, servo_ids=None):
def neutral(self, servo_ids=None, velocity=1000):
if servo_ids is None:
servo_ids = self.servo_sorted_ids
servo_vector = [7500] * len(servo_ids)
return self.servo_angle_vector(servo_ids,
servo_vector,
velocity=velocity)
av = [0] * len(servo_ids)
return self.angle_vector(av, servo_ids,
velocity=velocity)

def servo_angle_vector(self, servo_ids, servo_vector, velocity=127):
"""Sends a command to control multiple servos.
Expand Down
1 change: 1 addition & 0 deletions tests/rcb4_tests/test_armh7interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_angle_vector_to_servo_angle_vector(self):
def test_angle_vector(self):
self.interface.hold()
self.interface.neutral()
time.sleep(4.0)
reference = [60, 30]
self.interface.angle_vector(
reference,
Expand Down
Loading