Sha256: 83a2091a2e8ef1a343a0cd9e7079c5244383308eefa51bd32d37ea7183412792
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
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 drone.start(nav) end def fly(*data) drone.take_off after(10.seconds) { drone.animate(:turnaround, 3000) } after(15.seconds) { drone.hover.land } after(20.seconds) { drone.stop } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
artoo-ardrone-1.2.0 | examples/ardrone_animate.rb |