nmea_plus 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -6
- data/lib/nmea_plus/message/ais/vdm.rb +1 -0
- data/lib/nmea_plus/message/ais/vdm_payload/payload.rb +198 -0
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg.rb +21 -147
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg1.rb +28 -33
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb +5 -24
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb +2 -12
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg27.rb +30 -0
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg4.rb +2 -13
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb +1 -1
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb +48 -1
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb +139 -0
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d366f56.rb +29 -0
- data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb +2 -13
- data/lib/nmea_plus/message/nmea/aam.rb +1 -1
- data/lib/nmea_plus/message/nmea/alm.rb +1 -0
- data/lib/nmea_plus/message/nmea/apa.rb +1 -0
- data/lib/nmea_plus/message/nmea/apb.rb +1 -0
- data/lib/nmea_plus/message/nmea/bod.rb +1 -0
- data/lib/nmea_plus/message/nmea/bwc.rb +1 -0
- data/lib/nmea_plus/message/nmea/bwr.rb +1 -0
- data/lib/nmea_plus/message/nmea/bww.rb +1 -0
- data/lib/nmea_plus/message/nmea/dbk.rb +1 -0
- data/lib/nmea_plus/message/nmea/dbs.rb +1 -0
- data/lib/nmea_plus/message/nmea/dbt.rb +1 -0
- data/lib/nmea_plus/message/nmea/dcn.rb +1 -0
- data/lib/nmea_plus/message/nmea/dpt.rb +1 -0
- data/lib/nmea_plus/message/nmea/dtm.rb +1 -0
- data/lib/nmea_plus/message/nmea/fsi.rb +1 -0
- data/lib/nmea_plus/message/nmea/gbs.rb +1 -0
- data/lib/nmea_plus/message/nmea/gga.rb +1 -1
- data/lib/nmea_plus/message/nmea/glc.rb +1 -0
- data/lib/nmea_plus/message/nmea/gll.rb +1 -0
- data/lib/nmea_plus/message/nmea/gns.rb +1 -0
- data/lib/nmea_plus/message/nmea/grs.rb +1 -0
- data/lib/nmea_plus/message/nmea/gsa.rb +1 -0
- data/lib/nmea_plus/message/nmea/gst.rb +1 -0
- data/lib/nmea_plus/message/nmea/gsv.rb +1 -0
- data/lib/nmea_plus/message/nmea/gtd.rb +1 -0
- data/lib/nmea_plus/message/nmea/gxa.rb +1 -0
- data/lib/nmea_plus/message/nmea/hdg.rb +1 -0
- data/lib/nmea_plus/message/nmea/hdm.rb +1 -0
- data/lib/nmea_plus/message/nmea/hdt.rb +1 -0
- data/lib/nmea_plus/message/nmea/hfb.rb +1 -0
- data/lib/nmea_plus/message/nmea/hsc.rb +1 -0
- data/lib/nmea_plus/message/nmea/its.rb +1 -0
- data/lib/nmea_plus/message/nmea/lcd.rb +1 -0
- data/lib/nmea_plus/message/nmea/msk.rb +1 -0
- data/lib/nmea_plus/message/nmea/mss.rb +1 -0
- data/lib/nmea_plus/message/nmea/mtw.rb +1 -0
- data/lib/nmea_plus/message/nmea/mwv.rb +1 -0
- data/lib/nmea_plus/message/nmea/oln.rb +1 -0
- data/lib/nmea_plus/message/nmea/osd.rb +1 -0
- data/lib/nmea_plus/message/nmea/pashr.rb +1 -0
- data/lib/nmea_plus/message/nmea/r00.rb +1 -0
- data/lib/nmea_plus/message/nmea/rma.rb +1 -0
- data/lib/nmea_plus/message/nmea/rmb.rb +1 -0
- data/lib/nmea_plus/message/nmea/rmc.rb +1 -0
- data/lib/nmea_plus/message/nmea/rot.rb +1 -0
- data/lib/nmea_plus/message/nmea/rpm.rb +1 -0
- data/lib/nmea_plus/message/nmea/rsa.rb +1 -0
- data/lib/nmea_plus/message/nmea/rsd.rb +1 -0
- data/lib/nmea_plus/message/nmea/rte.rb +1 -0
- data/lib/nmea_plus/message/nmea/sfi.rb +1 -0
- data/lib/nmea_plus/message/nmea/stn.rb +1 -0
- data/lib/nmea_plus/message/nmea/tds.rb +1 -0
- data/lib/nmea_plus/message/nmea/tfi.rb +1 -0
- data/lib/nmea_plus/message/nmea/tpc.rb +1 -0
- data/lib/nmea_plus/message/nmea/tpr.rb +1 -0
- data/lib/nmea_plus/message/nmea/tpt.rb +1 -0
- data/lib/nmea_plus/message/nmea/trf.rb +1 -0
- data/lib/nmea_plus/message/nmea/ttm.rb +1 -0
- data/lib/nmea_plus/message/nmea/vbw.rb +1 -0
- data/lib/nmea_plus/message/nmea/vdr.rb +1 -0
- data/lib/nmea_plus/message/nmea/vhw.rb +1 -0
- data/lib/nmea_plus/message/nmea/vlw.rb +1 -0
- data/lib/nmea_plus/message/nmea/vpw.rb +1 -0
- data/lib/nmea_plus/message/nmea/vtg.rb +1 -0
- data/lib/nmea_plus/message/nmea/vwr.rb +1 -0
- data/lib/nmea_plus/message/nmea/wcv.rb +1 -0
- data/lib/nmea_plus/message/nmea/wnc.rb +1 -0
- data/lib/nmea_plus/message/nmea/wpl.rb +1 -0
- data/lib/nmea_plus/message/nmea/xdr.rb +1 -0
- data/lib/nmea_plus/message/nmea/xte.rb +1 -0
- data/lib/nmea_plus/message/nmea/xtr.rb +1 -0
- data/lib/nmea_plus/message/nmea/zda.rb +1 -0
- data/lib/nmea_plus/message/nmea/zfo.rb +1 -0
- data/lib/nmea_plus/message/nmea/ztg.rb +1 -0
- data/lib/nmea_plus/version.rb +1 -1
- metadata +8 -4
@@ -11,19 +11,8 @@ module NMEAPlus
|
|
11
11
|
|
12
12
|
payload_reader :speed_over_ground, 50, 10, :_U, 1
|
13
13
|
payload_reader :position_10m_accuracy?, 60, 1, :_b
|
14
|
-
|
15
|
-
|
16
|
-
# @return [Float]
|
17
|
-
def longitude
|
18
|
-
_I(61, 28, 4) / 60
|
19
|
-
end
|
20
|
-
|
21
|
-
# @!parse attr_reader :latitude
|
22
|
-
# @return [Float]
|
23
|
-
def latitude
|
24
|
-
_U(89, 27, 4) / 60
|
25
|
-
end
|
26
|
-
|
14
|
+
payload_reader :longitude, 61, 28, :_I, 60 * 10**4, 181
|
15
|
+
payload_reader :latitude, 89, 27, :_I, 60 * 10**4, 91
|
27
16
|
payload_reader :course_over_ground, 116, 12, :_U, 1
|
28
17
|
payload_reader :time_stamp, 128, 6, :_u
|
29
18
|
payload_reader :dte?, 142, 1, :_b
|
@@ -4,7 +4,7 @@ require_relative "base_nmea"
|
|
4
4
|
module NMEAPlus
|
5
5
|
module Message
|
6
6
|
module NMEA
|
7
|
-
|
7
|
+
# AAM - Waypoint Arrival Alarm
|
8
8
|
class AAM < NMEAPlus::Message::NMEA::NMEAMessage
|
9
9
|
field_reader :arrival_circle_entered?, 1, :_av_boolean
|
10
10
|
field_reader :waypoint_passed?, 2, :_av_boolean
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# APB - Autopilot Sentence "B"
|
6
7
|
class APB < NMEAPlus::Message::NMEA::APA
|
7
8
|
field_reader :bearing_position_to_destination, 11, :_float
|
8
9
|
field_reader :bearing_position_to_destination_compass_type, 12, :_string
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# GBS - GPS Satellite Fault Detection
|
6
7
|
class GBS < NMEAPlus::Message::NMEA::NMEAMessage
|
7
8
|
field_reader :fix_time, 1, :_utctime_hms
|
8
9
|
field_reader :expected_error_latitude_meters, 2, :_float
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# GGA - Global Positioning System Fix Data
|
6
7
|
class GLC < NMEAPlus::Message::NMEA::NMEAMessage
|
7
8
|
field_reader :gri_tenth_microseconds, 1, :_integer
|
8
9
|
field_reader :master_toa_microseconds, 2, :_float
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# GST - GPS Pseudorange Noise Statistics
|
6
7
|
class GST < NMEAPlus::Message::NMEA::NMEAMessage
|
7
8
|
field_reader :gga_fix_time, 1, :_utctime_hms
|
8
9
|
field_reader :total_rms_standard_deviation, 2, :_float
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# HFB - Trawl Headrope to Footrope and Bottom
|
6
7
|
class HFB < NMEAPlus::Message::NMEA::NMEAMessage
|
7
8
|
field_reader :headrope_to_footrope_meters, 1, :_float
|
8
9
|
field_reader :headrope_to_bottom_meters, 3, :_float
|
@@ -3,6 +3,7 @@ require_relative "base_nmea"
|
|
3
3
|
module NMEAPlus
|
4
4
|
module Message
|
5
5
|
module NMEA
|
6
|
+
# PASHR - RT300 proprietary roll and pitch sentence
|
6
7
|
class PASHR < NMEAPlus::Message::NMEA::NMEAMessage
|
7
8
|
field_reader :utc_time, 1, :_utctime_hms
|
8
9
|
field_reader :heading_degrees, 2, :_float
|