Skip to content

Commit

Permalink
Ignore worm servo from flash
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Jan 11, 2024
1 parent df31a12 commit 257bc91
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 257bc91

Please sign in to comment.