lib/artoo/adaptors/ardrone_video.rb in artoo-ardrone-1.1.0 vs lib/artoo/adaptors/ardrone_video.rb in artoo-ardrone-1.2.0
- old
+ new
@@ -10,12 +10,11 @@
# Creates connection to Argus TCP Video Streamer and
# Argus PaVE Parser starting a stream with ardrone device
# @return [Boolean]
def connect
- require 'argus' unless defined?(Argus)
- require 'argus'
- @ardrone = Argus::VideoStreamer.new(socket: connect_to_tcp, host: port.host, post: port.port)
+ require 'argus' unless defined?(::Argus::VideoStreamer)
+ @ardrone = ::Argus::VideoStreamer.new(socket: connect_to_tcp, host: port.host, post: port.port)
@ardrone.start(connect_to_udp)
super
end
# Closes ardrone connection