Closed aforren1 closed 5 years ago
In the multiprocessing case, do we want to return a list of 2d arrays? I.e. each element of the list contains all of the readings for a single bird.
See https://github.com/BLAM-Lab-Projects/experiment-code-sdl2/blob/master/TrackBird.cpp for current settings, e.g. that we use POSITION_MATRIX
.
See https://github.com/paulgribble/FlockOfBirds/blob/master/FOB4.py for another example of applying settings to Flock.
See pg. 158 of the manual for latency hints (probably implemented in TrackBird.cpp)
Figure out the difference between:
samples/report rate
See the DLL API for hints wrt. streaming mode (~pg 40).
Notes on characters, bytes & such:
(python 3)
b'\x50' == 'P'.encode('UTF-8')
b'\x50' + b'\x32' == 'P2'.encode('UTF-8')
bytearray([2,3,4]) + b'\x10' # bytes is different in 2 and 3
# bytearray(b'\x02\x03\x04\x10')
As of 0.1.0, we have a stripped-down version of the Flock of Birds (usable for most experiments). Testing & examples still need to be done.
I think we're almost there, but here's the list (as I understand it):
read()
to return a list of arraysAppend headers infob.py
andflockofbirds.py
suitablytime
by default, but allow forpsychopy.core.getTime()
)Enable/disable filtering (may need to modifyfob.py
)CHANGE_VALUE
)