Skip to content

Commit

Permalink
Merge pull request #15 from iory/fix
Browse files Browse the repository at this point in the history
Ignore worm servo from flash
  • Loading branch information
iory authored Jan 11, 2024
2 parents df31a12 + 9e96a9f commit aa0d74b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion rcb4/armh7interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,9 @@ def search_worm_ids(self):
for idx in range(max_sensor_num):
worm = self.memory_cstruct(WormmoduleStruct, idx)
if worm.module_type == 1:
indices.append(idx)
servo = self.memory_cstruct(ServoStruct, worm.servo_id)
if servo.rotation == 1:
indices.append(idx)
self.worm_sorted_ids = indices
return indices

Expand Down
2 changes: 1 addition & 1 deletion rcb4/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

elf_infos = {
'v0.6.2': ELFINFO(
'https://drive.google.com/uc?id=1quysoRGx92K0enHcBxITEAcUkZf2FCjk', # NOQA
'https://github.com/iory/rcb4/releases/download/v0.6.2.elf/v0.6.2.elf', # NOQA
'9205b34ce4d81b87c4f11e6139f96b17')
}

Expand Down

2 comments on commit aa0d74b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.