Skip to content

Commit

Permalink
Fix bird indices for now (other machinery can't handle alternatives)
Browse files Browse the repository at this point in the history
  • Loading branch information
aforren1 committed Nov 26, 2018
1 parent 917fe40 commit 98a5bdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toon/input/birds.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class RightPos(Obs):
shape = (3,)
ctype = c_double

def __init__(self, indices=[1, 3], **kwargs):
def __init__(self, **kwargs):
self._birds = None
self._master = None
self.indices = indices
self.indices = [1, 3]
self.read_from = []
self.cos_const = np.cos(-0.01938)
self.sin_const = np.sin(0.01938)
Expand Down Expand Up @@ -63,7 +63,7 @@ def __enter__(self):
self.read_from.append(b)
if self._master is None:
raise ValueError('Master not found in ports provided.')
self.read_from.reverse()
self.read_from.reverse() # TODO: fix it up so that read_from is in order of bird indices
# init master, FBB autoconfig
time.sleep(1)
self._master.write(('P' + chr(0x32) + chr(len(devices))).encode('utf-8'))
Expand Down

0 comments on commit 98a5bdf

Please sign in to comment.