This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) Error: | |
| Artoo::Connection#test_0001_Artoo::Connection#connect: | |
| NoMethodError: undefined method `assert_kind_of' for nil:NilClass | |
| (eval):8:in `must_be_kind_of' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:25:in `public_send' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:25:in `dispatch' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:67:in `dispatch' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/actor.rb:328:in `block in handle_message' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/tasks.rb:42:in `block in initialize' | |
| /home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/tasks/task_fiber.rb:9:in `block in create' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @robot.default_connection.adaptor.class.must_equal Artoo::Adaptors::Loopback # => true like expected | |
| @robot.default_connection.adaptor.must_be_kind_of Artoo::Adaptors::Loopback # => throws error like: | |
| NoMethodError: undefined method `assert_kind_of' for nil:NilClass | |
| (eval):8:in `must_be_kind_of' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'artoo' | |
| connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4560' | |
| device :sphero, :driver => :sphero | |
| def contact(*args) | |
| @contacts ||= 0 | |
| @contacts += 1 | |
| puts "Contact #{@contacts}" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source :rubygems | |
| gem 'rack', "~> 1.3.6" | |
| gem 'sinatra' | |
| gem 'json' | |
| gem 'oauth2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "http://rubygems.org" | |
| gem 'artoo', '~> 1.0.0.rc3' | |
| gem 'artoo-sphero', '~> 1.0.0.rc2' | |
| gem 'artoo-pebble', '~> 1.0.0.rc2' | |
| gem 'foreman' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ron@ron-Dell-System-XPS-L322X:~/Development/artoo/artoo-digispark (master) | |
| $ bundle exec ruby examples/wiichuck.rb | |
| I, [2013-09-14T18:35:57.361940 #26729] INFO -- : Registering connection 'digispark'... | |
| I, [2013-09-14T18:35:57.362049 #26729] INFO -- : Registering device 'board'... | |
| I, [2013-09-14T18:35:57.362116 #26729] INFO -- : Registering device 'wiichuck'... | |
| I, [2013-09-14T18:35:57.362183 #26729] INFO -- : Preparing work... | |
| I, [2013-09-14T18:35:57.363255 #26729] INFO -- : Initializing connection digispark... | |
| I, [2013-09-14T18:35:57.368321 #26729] INFO -- : Initializing device board... | |
| I, [2013-09-14T18:35:57.386891 #26729] INFO -- : Initializing device wiichuck... | |
| I, [2013-09-14T18:35:57.395551 #26729] INFO -- : Starting work... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ artoo install digispark | |
| run littlewire.rb install 1.2 from "." | |
| Will upload to a littlewire which has been updated with the micronucleus bootloader, or to a digispark. | |
| Plug in micronucleus device now: (waiting) | |
| Attached to device: <Micronucleus 1.02: 5.9 kb programmable> | |
| Writing program in to device's memory | |
| erasing | |
| erased chip | |
| uploading @ 0 of 6010 | |
| uploading @ 64 of 6010 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'artoo' | |
| connection :ardrone, :adaptor => :ardrone | |
| device :drone, :driver => :ardrone, :connection => :ardrone | |
| work do | |
| on drone, :ready => :fly | |
| drone.start | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'artoo' | |
| connection :ardrone, :adaptor => :ardrone | |
| device :drone, :driver => :ardrone, :connection => :ardrone | |
| connection :navigation, :adaptor => :ardrone_navigation | |
| device :nav, :driver => :ardrone_navigation, :connection => :navigation | |
| work do | |
| on drone, :ready => :fly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'artoo' | |
| connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4560' | |
| device :sphero, :driver => :sphero | |
| work do | |
| every(3.seconds) do | |
| if @color == :green | |
| @color = :blue | |
| else |