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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c0fe2a4f252f3bd3d5149fe0d040816a82834725
4
- data.tar.gz: 2332d6d7b8ed3a2aa4c5100923538ab886631f09
3
+ metadata.gz: e2a2977c68f20974a7722eb73cb6acd9dd440b49
4
+ data.tar.gz: b71ff95fae2df05837c8d025f160f91b7949b9ee
5
5
  SHA512:
6
- metadata.gz: c74a7e8b802a2385f84c34450aabc308aff0e5eb8dc60f50bee9b5f6366241c4a8bd109784b51be154f2eb878b4452b2babf85fcdb12c7954dcb36c95d3fe2bf
7
- data.tar.gz: ffe74eaefa2c1fd9b068944e822f9134312bc5ebf9dfd90389eeee4a5488aded13dd761532efa5becd271fd29a1fe6c6e8e7d96b03005c46493ae633a89603e4
6
+ metadata.gz: 116c01b413b5153bb3dac564dcf2b81bcf35939718234bda7dd4a6689d095a3648e97e674c6d6002c72e951262a604a090b9b70ddb86bc813cc0f2e1cab8e184
7
+ data.tar.gz: 71450877d6f8714d5a5e21e759d62a8379588122b7f53f2b484fbe366ebc2ce95709c4a15a958546c0e2b68503b0c6a09ae690e09829d387ab9434f0daf6e509
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-neurosky (0.1.1)
4
+ artoo-neurosky (0.1.2)
5
5
  artoo (>= 1.6.4)
6
6
  hybridgroup-mindset
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Neurosky
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-neurosky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans