lib/artoo/adaptors/ardrone_navigation.rb in artoo-ardrone-1.0.2.pre vs lib/artoo/adaptors/ardrone_navigation.rb in artoo-ardrone-1.0.3
- 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, host: port.host, port: port.port.to_i)
+ require 'argus' unless defined?(Argus)
+ @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