nmea_plus 1.0.14 → 1.0.15
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_msg15.rb +23 -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: 85cca857bda5c298e09a04bd89574357c9dd987c
|
4
|
+
data.tar.gz: 3fabde48559cd53884582f33e0d5733045a93b3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d951aa93ac23758177fff1f2cd62a7c3955666d4affcb32857a3662039d1a294f1e31fef0683d9230b5c9725599e0f10edaeda04974549d388fe7ef79a40cb62
|
7
|
+
data.tar.gz: b91cf7ae1bcac75bc9223db59a79c054f6570063ae705d0f25b52e6807ed352d5bd239fb556b3e5603986a9ec3a629995c108808a4f5460e0839c005ca134ef4
|
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.15)
|
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, 18, 19, 20, 21, 24, 27
|
109
|
+
> 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 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
|
|
@@ -30,6 +30,7 @@ require_relative "vdm_payload/vdm_msg11"
|
|
30
30
|
require_relative "vdm_payload/vdm_msg12"
|
31
31
|
require_relative "vdm_payload/vdm_msg13"
|
32
32
|
require_relative "vdm_payload/vdm_msg14"
|
33
|
+
require_relative "vdm_payload/vdm_msg15"
|
33
34
|
require_relative "vdm_payload/vdm_msg18"
|
34
35
|
require_relative "vdm_payload/vdm_msg19"
|
35
36
|
require_relative "vdm_payload/vdm_msg20"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative 'vdm_msg'
|
2
|
+
|
3
|
+
module NMEAPlus
|
4
|
+
module Message
|
5
|
+
module AIS
|
6
|
+
module VDMPayload
|
7
|
+
# AIS Type 15: Interrogation
|
8
|
+
class VDMMsg15 < NMEAPlus::Message::AIS::VDMPayload::VDMMsg
|
9
|
+
payload_reader :interrogation1_mmsi, 40, 30, :_u
|
10
|
+
payload_reader :interrogation1_type1, 70, 6, :_u
|
11
|
+
payload_reader :interrogation1_offset1, 76, 12, :_u
|
12
|
+
|
13
|
+
payload_reader :interrogation1_type2, 90, 6, :_u
|
14
|
+
payload_reader :interrogation1_offset2, 96, 12, :_u
|
15
|
+
|
16
|
+
payload_reader :interrogation2_mmsi, 110, 30, :_u
|
17
|
+
payload_reader :interrogation2_type, 140, 6, :_u
|
18
|
+
payload_reader :interrogation2_offset, 146, 12, :_u
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
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.15
|
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-
|
11
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: racc
|
@@ -204,6 +204,7 @@ files:
|
|
204
204
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb
|
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
|
+
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg15.rb
|
207
208
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb
|
208
209
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg19.rb
|
209
210
|
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg2.rb
|