icaro 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/icaro.rb +2 -2
- metadata +2 -2
data/lib/icaro.rb
CHANGED
@@ -138,14 +138,14 @@ alias leer_digital read_digital
|
|
138
138
|
|
139
139
|
#move servo motors
|
140
140
|
#Icaro board has 5 servo engines ports
|
141
|
-
#value is one of 255
|
141
|
+
#value is one of 255 integer and move the engine to that position
|
142
142
|
# icaro.servo('1','x')
|
143
143
|
def servo(servo,value)
|
144
144
|
if [1,2,3,4,5].include?(servo.to_i)
|
145
145
|
begin
|
146
146
|
@sp.write('m')
|
147
147
|
@sp.write(servo)
|
148
|
-
@sp.write(value)
|
148
|
+
@sp.write(value.to_i)
|
149
149
|
return true
|
150
150
|
rescue Errno::EIO => ex
|
151
151
|
STDERR.puts ex.message
|
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.5
|
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-
|
12
|
+
date: 2013-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: serialport
|