Sha256: 8cb435af6f7a0136046c262ca304686f1bc2599d1615c6f736a20c7c9636f80f
Contents?: true
Size: 561 Bytes
Versions: 32
Compression:
Stored size: 561 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 nav, :update => :nav_update drone.start drone.take_off after(50.seconds) { drone.hover.land } after(60.seconds) { drone.stop } end def nav_update(*data) data[1].drone_state.each do |name, val| p "#{name}: #{val}" end end
Version data entries
32 entries across 32 versions & 1 rubygems