Sha256: ce1a45582f3758d9e11ff5559c0c36f3ec36efa6956ef228f811011281d407d5

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 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, :navdata => :nav_update
  drone.start
  drone.take_off
  
  after(25.seconds) { drone.hover.land }
  after(30.seconds) { drone.stop }
end

def nav_update(*data)
  p "#{data[1].inspect}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artoo-ardrone-1.1.0 examples/ardrone_nav.rb
artoo-ardrone-1.0.3 examples/ardrone_nav.rb