lib/artoo/adaptors/ardrone_navigation.rb in artoo-ardrone-1.1.0 vs lib/artoo/adaptors/ardrone_navigation.rb in artoo-ardrone-1.2.0
- old
+ new
@@ -8,11 +8,11 @@
attr_reader :ardrone
# Creates connection with Argus NavStreamer and starts ardrone device
# @return [Boolean]
def connect
- require 'argus' unless defined?(Argus)
- @ardrone = Argus::NavStreamer.new(socket: connect_to_udp, remote_host: port.host, port: port.port.to_i)
+ require 'argus' unless defined?(::Argus::NavStreamer)
+ @ardrone = ::Argus::NavStreamer.new(socket: connect_to_udp, remote_host: port.host, port: port.port.to_i)
@ardrone.start
super
end
# Closes connection with ardrone device