Sha256: 18629474b7f727cccaf7483396ca2739667ce5692c0f7eb350bdbf021098f53b
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require 'artoo' connection :ardrone, :adaptor => :ardrone, :port => '192.168.1.1:5556' device :drone, :driver => :ardrone, :connection => :ardrone connection :navigation, :adaptor => :ardrone_navigation, :port => '192.168.1.1:5554' device :nav, :driver => :ardrone_navigation, :connection => :navigation work do on drone, :ready => :fly on nav, :navdata => :nav_update drone.start(nav) end def fly(*data) drone.take_off after(15.seconds) { drone.hover.land } after(20.seconds) { drone.stop } end def nav_update(*data) p "#{data[1].inspect}" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
artoo-ardrone-1.4.0 | examples/ardrone_nav.rb |
artoo-ardrone-1.3.0 | examples/ardrone_nav.rb |
artoo-ardrone-1.2.0 | examples/ardrone_nav.rb |