Sha256: 686b43f845b696a809c73cda6f3eaedb7bf6dd63846303366ae42a805d426827
Contents?: true
Size: 548 Bytes
Versions: 2
Compression:
Stored size: 548 Bytes
Contents
require 'artoo' connection :ardrone, :adaptor => :ardrone, :port => '192.168.1.1:5556' device :drone, :driver => :ardrone, :connection => :ardrone connection :videodrone, :adaptor => :ardrone_video, :port => '192.168.1.1:5555' device :video, :driver => :ardrone_video, :connection => :videodrone work do on video, :frame => :v_frame drone.start drone.take_off after(25.seconds) { drone.hover.land } after(30.seconds) { drone.stop } end def v_frame(*data) @count ||= 0 @count += 1 puts "Frame# #{@count} #{data[1].size} bytes" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
artoo-ardrone-1.1.0 | examples/ardrone_video.rb |
artoo-ardrone-1.0.3 | examples/ardrone_video.rb |