artoo-neurosky 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/artoo/drivers/neurosky.rb +9 -0
- data/lib/artoo-neurosky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2a2977c68f20974a7722eb73cb6acd9dd440b49
|
4
|
+
data.tar.gz: b71ff95fae2df05837c8d025f160f91b7949b9ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 116c01b413b5153bb3dac564dcf2b81bcf35939718234bda7dd4a6689d095a3648e97e674c6d6002c72e951262a604a090b9b70ddb86bc813cc0f2e1cab8e184
|
7
|
+
data.tar.gz: 71450877d6f8714d5a5e21e759d62a8379588122b7f53f2b484fbe366ebc2ce95709c4a15a958546c0e2b68503b0c6a09ae690e09829d387ab9434f0daf6e509
|
data/Gemfile.lock
CHANGED
@@ -37,18 +37,27 @@ module Artoo
|
|
37
37
|
def handle_packet(packet)
|
38
38
|
case
|
39
39
|
when packet[:wave]
|
40
|
+
publish(event_topic_name("update"), "wave", packet[:wave])
|
40
41
|
publish(event_topic_name("wave"), packet[:wave])
|
41
42
|
|
42
43
|
when packet[:signal_quality]
|
44
|
+
publish(event_topic_name("update"), "signal_quality", packet[:signal_quality])
|
43
45
|
publish(event_topic_name("signal_quality"), packet[:signal_quality])
|
44
46
|
|
45
47
|
when packet[:attention]
|
48
|
+
publish(event_topic_name("update"), "attention", packet[:attention])
|
46
49
|
publish(event_topic_name("attention"), packet[:attention])
|
47
50
|
|
48
51
|
when packet[:meditation]
|
52
|
+
publish(event_topic_name("update"), "meditation", packet[:meditation])
|
49
53
|
publish(event_topic_name("meditation"), packet[:meditation])
|
50
54
|
|
55
|
+
when packet[:blink]
|
56
|
+
publish(event_topic_name("update"), "blink", packet[:blink])
|
57
|
+
publish(event_topic_name("blink"), packet[:blink])
|
58
|
+
|
51
59
|
when packet[:delta]
|
60
|
+
publish(event_topic_name("update"), "eeg", packet)
|
52
61
|
publish(event_topic_name("eeg"), packet)
|
53
62
|
|
54
63
|
else
|