farmbot-serial 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/arduino/outgoing_handler.rb +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cfa534d5bd13bbb21b9f9b866c77a5be3d9d390
|
4
|
+
data.tar.gz: 378570f4addbbd5dea9a9ab29657b9d35adc4a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b4a4989520295d8532a6c796924db54dbdea094d7fb7545e5a93896c195d285294414a16286ce7feef4bd14a2e705ac63bee79009b0dd978f76a7beb88b157
|
7
|
+
data.tar.gz: c0b6fdd7eb5095f291d53277b80177cd6325f0a06b1d2d1fa411c3555bcf5918747164a687d8d194c82a3db00e9d0a74eb07b03d0917749d092dbb9078a809bf
|
@@ -107,11 +107,19 @@ module FB
|
|
107
107
|
raise "Not yet implemented. TODO: This method."
|
108
108
|
end
|
109
109
|
|
110
|
+
def wait(ms)
|
111
|
+
if (ms.is_a?(Integer))
|
112
|
+
write { "F44 P13 T#{ ms } M0 v1" }
|
113
|
+
else
|
114
|
+
raise BadNumericValue, "Expected sleep command to receive an integer."
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
110
118
|
private
|
111
119
|
|
112
120
|
class InvalidAxisEntry < Exception; end
|
113
121
|
class BadBooleanValue < Exception; end
|
114
|
-
|
122
|
+
class BadNumericValue < Exception; end
|
115
123
|
# The Arduino uses a different parameter number for each axis. Ex:
|
116
124
|
# MOVEMENT_TIMEOUT_X is 11 and MOVEMENT_TIMEOUT_Y is 12. To keep things dry,
|
117
125
|
# this method will lookup the correct paramater numer based on the axis
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: farmbot-serial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Evers
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -178,7 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
178
|
version: '0'
|
179
179
|
requirements: []
|
180
180
|
rubyforge_project:
|
181
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.5.1
|
182
182
|
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Serial library for Farmbot
|