icaro 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/icaro.rb +3 -1
- metadata +2 -2
data/lib/icaro.rb
CHANGED
@@ -25,6 +25,8 @@ class Icaro
|
|
25
25
|
else
|
26
26
|
return false
|
27
27
|
end
|
28
|
+
rescue Errno::EACCES => ex
|
29
|
+
STDERR.puts ex.message + 'hint: Add your user to group dialout'
|
28
30
|
rescue Errno::ENODEV => ex
|
29
31
|
STDERR.puts ex.message
|
30
32
|
rescue Errno::EBUSY => ex
|
@@ -79,7 +81,7 @@ alias activar start
|
|
79
81
|
# icaro.motor('1') move icaro forward
|
80
82
|
#
|
81
83
|
def motor(value)
|
82
|
-
if [1,2,3,4].include?(value.to_i)
|
84
|
+
if [1,2,3,4,5].include?(value.to_i)
|
83
85
|
begin
|
84
86
|
@sp.write('l')
|
85
87
|
@sp.write(value)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: icaro
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: serialport
|