nmea_plus 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/nmea_plus/message/ais/vdm.rb +1 -0
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg16.rb +20 -0
- data/lib/nmea_plus/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcaa196d29b8c5326add77a0eb4d59bfcfb1b587
|
4
|
+
data.tar.gz: 9161f5f61d3072ea7c7514cf3ec566c66be84493
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff8eaac575b460bb3dcdc0ab65f19521db7e799576deeba954abab3321e1040e817f4c78bf37c56eb41e34af6e9028c5d570db7a8f24e13843df37a1191c3fa
|
7
|
+
data.tar.gz: 3df0f07823a4d9b9d312786e0415d4e0c5948d8f1bbb560aa8333123869f92dd76fd2161d595a06d13d93948e7c9c83d3ead37851eb64511b32050c0eeb35583
|
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/ifreecarve/nmea_plus.svg)](https://travis-ci.org/ifreecarve/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.16)
|
6
6
|
|
7
7
|
[NMEA Plus](https://github.com/ifreecarve/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.
|
8
8
|
|
@@ -106,7 +106,7 @@ https://www.itu.int/dms_pubrec/itu-r/rec/m/R-REC-M.1371-4-201004-S!!PDF-E.pdf
|
|
106
106
|
|
107
107
|
The AIS payload can be found in the payload field of a `VDM` message (aka `!AIVDM`, `!ABVDM`, `!SAVDM`). Currently, the following AIS message types are supported:
|
108
108
|
|
109
|
-
> 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 18, 19, 20, 21, 24, 27
|
109
|
+
> 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 24, 27
|
110
110
|
|
111
111
|
> Type 6 subtypes for DAC/FID: 1/0, 1/2, 1/3, 1/4, 1/5, 235/10, 1022/61
|
112
112
|
|
@@ -31,6 +31,7 @@ require_relative "vdm_payload/vdm_msg12"
|
|
31
31
|
require_relative "vdm_payload/vdm_msg13"
|
32
32
|
require_relative "vdm_payload/vdm_msg14"
|
33
33
|
require_relative "vdm_payload/vdm_msg15"
|
34
|
+
require_relative "vdm_payload/vdm_msg16"
|
34
35
|
require_relative "vdm_payload/vdm_msg18"
|
35
36
|
require_relative "vdm_payload/vdm_msg19"
|
36
37
|
require_relative "vdm_payload/vdm_msg20"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative 'vdm_msg'
|
2
|
+
|
3
|
+
module NMEAPlus
|
4
|
+
module Message
|
5
|
+
module AIS
|
6
|
+
module VDMPayload
|
7
|
+
# AIS Type 16: Assignment Mode Command
|
8
|
+
class VDMMsg16 < NMEAPlus::Message::AIS::VDMPayload::VDMMsg
|
9
|
+
payload_reader :destination1_mmsi, 40, 30, :_u, 0
|
10
|
+
payload_reader :destination1_offset, 70, 12, :_u
|
11
|
+
payload_reader :destination1_increment, 82, 10, :_u
|
12
|
+
|
13
|
+
payload_reader :destination2_mmsi, 92, 30, :_u, 0
|
14
|
+
payload_reader :destination2_offset, 122, 12, :_u
|
15
|
+
payload_reader :destination2_increment, 134, 10, :_u
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Katz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|
@@ -205,6 +205,7 @@ files:
|
|
205
205
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg13.rb
|
206
206
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg14.rb
|
207
207
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg15.rb
|
208
|
+
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg16.rb
|
208
209
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb
|
209
210
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg19.rb
|
210
211
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg2.rb
|