nmea_plus 1.0.22 → 1.0.23
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 41c0e1dddb32b8870f5cd7722eb6a44f28bd3fd2
|
4
|
+
data.tar.gz: 1aaa6c32c71fffd7241fa083073b047a41bfb7bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d432daa3097b694fcc7644c24f2d2600475b5c3aeb74dcefbbdca6f97be0424ce77947e0a2c1e7ed1d77a6ad150d47f202b35332ec56933e89f9ca1c7b27dc5
|
7
|
+
data.tar.gz: b6021ad88bf390abb4a56779b62c6e788aa4563fb3af652a16479ad0338cd14711f553c71b40226eeb7b6e54e9abf66ba0640ccb1d396c24410d364b63248f28
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/nmea_plus.svg)](https://rubygems.org/gems/nmea_plus)
|
4
4
|
[![Build Status](https://travis-ci.org/ianfixes/nmea_plus.svg)](https://travis-ci.org/ianfixes/nmea_plus)
|
5
|
-
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/nmea_plus/1.0.
|
5
|
+
[![Documentation](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://www.rubydoc.info/gems/nmea_plus/1.0.23)
|
6
6
|
[![Documentation completeness](http://inch-ci.org/github/ianfixes/nmea_plus.svg?branch=master)](http://inch-ci.org/github/ianfixes/nmea_plus)
|
7
7
|
|
8
8
|
[NMEA Plus](https://github.com/ianfixes/nmea_plus) is a Ruby gem for parsing and decoding "GPS" messages: NMEA, AIS, and any other similar formats of short messaging typically used by marine equipment. It provides convenient access (by name) to the fields of each message type, and a stream reader designed for use with Ruby Blocks.
|
@@ -33,6 +33,7 @@ require_relative "vdm_payload/vdm_msg13"
|
|
33
33
|
require_relative "vdm_payload/vdm_msg14"
|
34
34
|
require_relative "vdm_payload/vdm_msg15"
|
35
35
|
require_relative "vdm_payload/vdm_msg16"
|
36
|
+
require_relative "vdm_payload/vdm_msg17"
|
36
37
|
require_relative "vdm_payload/vdm_msg18"
|
37
38
|
require_relative "vdm_payload/vdm_msg19"
|
38
39
|
require_relative "vdm_payload/vdm_msg20"
|
@@ -66,7 +66,7 @@ module NMEAPlus
|
|
66
66
|
def _access(start, length)
|
67
67
|
part = @payload_bitstring[start, length]
|
68
68
|
return nil if part.nil? || part.empty?
|
69
|
-
yield part
|
69
|
+
block_given? ? (yield part) : part
|
70
70
|
end
|
71
71
|
|
72
72
|
# pull out 6b chunks from the payload, then convert those to their more familar characters
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require_relative 'vdm_msg'
|
2
|
+
|
3
|
+
module NMEAPlus
|
4
|
+
module Message
|
5
|
+
module AIS
|
6
|
+
module VDMPayload
|
7
|
+
# AIS Type 17: DGNSS Broadcast Binary Message
|
8
|
+
class VDMMsg17 < NMEAPlus::Message::AIS::VDMPayload::VDMMsg
|
9
|
+
payload_reader :longitude, 40, 18, :_I, 60 * 10, 181
|
10
|
+
payload_reader :latitude, 58, 17, :_I, 60 * 10, 91
|
11
|
+
payload_reader :payload_2b, 80, 736, :_d
|
12
|
+
payload_reader :payload_8b, 80, 736, :_T
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/nmea_plus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nmea_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|
@@ -208,6 +208,7 @@ files:
|
|
208
208
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg14.rb
|
209
209
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg15.rb
|
210
210
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg16.rb
|
211
|
+
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg17.rb
|
211
212
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb
|
212
213
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg19.rb
|
213
214
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg2.rb
|
@@ -415,7 +416,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
415
416
|
version: '0'
|
416
417
|
requirements: []
|
417
418
|
rubyforge_project:
|
418
|
-
rubygems_version: 2.
|
419
|
+
rubygems_version: 2.5.2.3
|
419
420
|
signing_key:
|
420
421
|
specification_version: 4
|
421
422
|
summary: Parse and decode NMEA (GPS) and AIS messages
|