@@ -12,6 +12,12 @@ Contributions by
12
12
* Sharif Olorin (http://github.com/fractalcat ) - hidapi support
13
13
* Bill Schumacher (http://github.com/bschumacher ) - Fixed the Python library
14
14
15
+ Headset Support
16
+ ===============
17
+
18
+ Supported: Epoc, Epoc+(Pre-2016, limited gyro sensors)
19
+ Unsupported: Epoc+(2016+), other models.
20
+
15
21
Description
16
22
===========
17
23
@@ -85,17 +91,22 @@ Python library
85
91
--------------
86
92
87
93
Code:
88
-
89
- import emotiv
90
94
91
- if __name__ == "__main__":
92
- with emotiv.Emotiv() as headset:
93
- while True:
94
- packet = headset.dequeue()
95
- if packet is not None:
96
- print("Gyro - X:{x_position} Y:{y_position}".format(x_position=packet.sensors['X']['value'],
97
- y_position=packet.sensors['Y']['value']))
95
+ # -*- coding: utf-8 -*-
96
+ # This is an example of popping a packet from the Emotiv class's packet queue
97
+
98
98
99
+ import time
100
+
101
+ from emokit.emotiv import Emotiv
102
+
103
+ if __name__ == "__main__":
104
+ with Emotiv(display_output=True, verbose=True) as headset:
105
+ while True:
106
+ packet = headset.dequeue()
107
+ if packet is not None:
108
+ pass
109
+ time.sleep(0.001)
99
110
100
111
101
112
Bindings
@@ -169,22 +180,30 @@ Suites? Saddest hotel EVER.
169
180
- * What should my output look like?*
170
181
171
182
Idling, not on someone's head it should look something like this:
172
- Y Reading: 0 Quality: 0
173
- F3 Reading: 316 Quality: 24
174
- F4 Reading: 779 Quality: 16
175
- P7 Reading: 189 Quality: 0
176
- FC6 Reading: 925 Quality: 24
177
- F7 Reading: 80 Quality: 0
178
- F8 Reading: 1037 Quality: 8
179
- T7 Reading: 345 Quality: 16
180
- P8 Reading: -92 Quality: 16
181
- FC5 Reading: 1113 Quality: 16
182
- AF4 Reading: 476 Quality: 0
183
- Unknown Reading: 82 Quality: 8
184
- T8 Reading: 636 Quality: 16
185
- X Reading: 1 Quality: 0
186
- Z Reading: ? Quality: 0
187
- O2 Reading: 216 Quality: 0
188
- O1 Reading: -39 Quality: 24
189
- AF3 Reading: 100 Quality: 24
190
- Battery: 0
183
+
184
+ Emokit - v0.0.8 SN: ActualSerialNumberHere Old Model: False
185
+ +========================================================+
186
+ | Sensor | Value | Quality | Quality L1 | Quality L2 |
187
+ +--------+----------+----------+------------+------------+
188
+ | F3 | 292 | 24 | Nothing | Nothing |
189
+ | FC5 | 1069 | 0 | Nothing | Nothing |
190
+ | AF3 | 110 | 8 | Nothing | Nothing |
191
+ | F7 | 63 | 24 | Nothing | Nothing |
192
+ | T7 | 322 | 8 | Nothing | Nothing |
193
+ | P7 | 166 | 0 | Nothing | Nothing |
194
+ | O1 | -62 | 24 | Nothing | Nothing |
195
+ | O2 | 235 | 24 | Nothing | Nothing |
196
+ | P8 | -63 | 24 | Nothing | Nothing |
197
+ | T8 | 626 | 16 | Nothing | Nothing |
198
+ | F8 | 1045 | 16 | Nothing | Nothing |
199
+ | AF4 | 578 | 8 | Nothing | Nothing |
200
+ | FC6 | 973 | 16 | Nothing | Nothing |
201
+ | F4 | 780 | 8 | Nothing | Nothing |
202
+ | X | 2 | N/A | N/A | N/A |
203
+ | Y | 1 | N/A | N/A | N/A |
204
+ | Z | ? | N/A | N/A | N/A |
205
+ | Batt | 46 | N/A | N/A | N/A |
206
+ +--------+----------+----------+------------+------------+
207
+ | Packets Received: 452 | Packets Processed: 447 |
208
+ | Sampling Rate: 2 | Crypto Rate: 0 |
209
+ +========================================================+
0 commit comments