serialport_gps 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/serialport_gps.rb +2 -2
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48c435325f10ed24180ad144007f8e23d830d83f
|
4
|
+
data.tar.gz: 1b381072fe903f171440caa8d23e8921898940b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07cd876b9cc7efb3d44dcb563ea367e005092a080cded89ce15d8265ce21a97fe40a74519597665e331261ea8fa36c9464b35ac8f92f53ba9aebf3d9027c44b3
|
7
|
+
data.tar.gz: 927b4de2bced62f7d98d5dc6ad26d2b951379c85e514edf25c24cab3b6890a9afb1f3eb62437c52f10852589f7e9de8137c0e441852c7ba9c2324e101f9c7f1b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/serialport_gps.rb
CHANGED
@@ -12,7 +12,7 @@ class SerialPortGPS
|
|
12
12
|
attr_reader :time, :latitude, :longitude, :to_h
|
13
13
|
|
14
14
|
def initialize(port: "/dev/ttyAMA0", baud_rate: 9600,
|
15
|
-
refresh_rate: 8, callback:
|
15
|
+
refresh_rate: 8, callback: ->(gps){ puts gps.to_h.inspect})
|
16
16
|
|
17
17
|
|
18
18
|
# if the refresh rate is any less than 8 seconds the serial connection
|
@@ -52,7 +52,7 @@ class SerialPortGPS
|
|
52
52
|
|
53
53
|
@time, @latitude, @longitude, @to_h = @np.time, @np.latitude,
|
54
54
|
@np.longitude, @np.to_h
|
55
|
-
@callback.call
|
55
|
+
@callback.call self
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialport_gps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
ewjgWJOdFqxFejbi9KWKC5p41B61CLUVpBaNg+MMy6q1GwkifCJIdi2tKu5b/O0K
|
32
32
|
Z4KfhyVeTsL078HV
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2014-07-
|
34
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nmea_parser
|
metadata.gz.sig
CHANGED
Binary file
|