diff --git a/.ruby-version b/.ruby-version index 314a6ed..94b04ed 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-2.1.1 +ruby-2.2.2 diff --git a/Gemfile b/Gemfile index 78c82cf..4f604e1 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,5 @@ source 'https://rubygems.org' # Specify your gem's dependencies in ruby-ev3.gemspec gemspec + +gem 'artoo-joystick' diff --git a/examples/xbox_controller_robot.rb b/examples/xbox_controller_robot.rb index 1a53687..45fde54 100644 --- a/examples/xbox_controller_robot.rb +++ b/examples/xbox_controller_robot.rb @@ -1,6 +1,6 @@ require 'rubygems' require 'ev3' -require 'ev3/connections/wifi' +require 'ev3/connections/bluetooth' require 'artoo' INTERVAL = 0.1 @@ -22,9 +22,9 @@ class Robot MAX_TURN = 40 def initialize - @brick = EV3::Brick.new(EV3::Connections::Wifi.new) + @brick = EV3::Brick.new(EV3::Connections::Bluetooth.new) @brick.connect - @brick.beep + # @brick.beep motors.each do |motor| motor.stop @@ -231,4 +231,4 @@ def signed_to_percentage(number) puts "trigger lt: #{value[1]}" handler.trigger_lt(value[1]) } -end \ No newline at end of file +end diff --git a/ruby-ev3.gemspec b/ruby-ev3.gemspec index f0af3b8..3518074 100644 --- a/ruby-ev3.gemspec +++ b/ruby-ev3.gemspec @@ -8,8 +8,8 @@ Gem::Specification.new do |spec| spec.version = EV3::VERSION spec.authors = ["Justin Cunningham"] spec.email = ["justin@bulletprooftiger.com"] - spec.summary = %q{TODO: Write a short summary. Required.} - spec.description = %q{TODO: Write a longer description. Optional.} + spec.summary = %q{Gem for controlling the EV3 lego robot.} + spec.description = %q{Gem for controlling the EV3 lego robot.} spec.homepage = "" spec.license = "MIT"