How could I get sensors value array
shihray opened this issue · 4 comments
shihray commented
hi everyone
i'm try to use headset.dequeue() to get values
gust like packet.sensors['AF3']['value']
but this just can get one value
how to get sensors value to array
Deleted user commented
packet.sensors is a dictionary of all the values.
shihray commented
@bschumacher thanks for your answer
but I want to get an array its length is 128 in one second
how could I make that come true
Deleted user commented
You would append the packet.sensors to a list, unless you're using numpy arrays.
When the list length is equal to 128 append that list to another list assuming you want to keep it around or perform your processing or whatever.
shihray commented
@bschumacher thanks a lot
I got it