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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -6
  3. data/lib/nmea_plus/message/ais/vdm.rb +1 -0
  4. data/lib/nmea_plus/message/ais/vdm_payload/payload.rb +198 -0
  5. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg.rb +21 -147
  6. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg1.rb +28 -33
  7. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg18.rb +5 -24
  8. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb +2 -12
  9. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg27.rb +30 -0
  10. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg4.rb +2 -13
  11. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb +1 -1
  12. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb +48 -1
  13. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb +139 -0
  14. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d366f56.rb +29 -0
  15. data/lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb +2 -13
  16. data/lib/nmea_plus/message/nmea/aam.rb +1 -1
  17. data/lib/nmea_plus/message/nmea/alm.rb +1 -0
  18. data/lib/nmea_plus/message/nmea/apa.rb +1 -0
  19. data/lib/nmea_plus/message/nmea/apb.rb +1 -0
  20. data/lib/nmea_plus/message/nmea/bod.rb +1 -0
  21. data/lib/nmea_plus/message/nmea/bwc.rb +1 -0
  22. data/lib/nmea_plus/message/nmea/bwr.rb +1 -0
  23. data/lib/nmea_plus/message/nmea/bww.rb +1 -0
  24. data/lib/nmea_plus/message/nmea/dbk.rb +1 -0
  25. data/lib/nmea_plus/message/nmea/dbs.rb +1 -0
  26. data/lib/nmea_plus/message/nmea/dbt.rb +1 -0
  27. data/lib/nmea_plus/message/nmea/dcn.rb +1 -0
  28. data/lib/nmea_plus/message/nmea/dpt.rb +1 -0
  29. data/lib/nmea_plus/message/nmea/dtm.rb +1 -0
  30. data/lib/nmea_plus/message/nmea/fsi.rb +1 -0
  31. data/lib/nmea_plus/message/nmea/gbs.rb +1 -0
  32. data/lib/nmea_plus/message/nmea/gga.rb +1 -1
  33. data/lib/nmea_plus/message/nmea/glc.rb +1 -0
  34. data/lib/nmea_plus/message/nmea/gll.rb +1 -0
  35. data/lib/nmea_plus/message/nmea/gns.rb +1 -0
  36. data/lib/nmea_plus/message/nmea/grs.rb +1 -0
  37. data/lib/nmea_plus/message/nmea/gsa.rb +1 -0
  38. data/lib/nmea_plus/message/nmea/gst.rb +1 -0
  39. data/lib/nmea_plus/message/nmea/gsv.rb +1 -0
  40. data/lib/nmea_plus/message/nmea/gtd.rb +1 -0
  41. data/lib/nmea_plus/message/nmea/gxa.rb +1 -0
  42. data/lib/nmea_plus/message/nmea/hdg.rb +1 -0
  43. data/lib/nmea_plus/message/nmea/hdm.rb +1 -0
  44. data/lib/nmea_plus/message/nmea/hdt.rb +1 -0
  45. data/lib/nmea_plus/message/nmea/hfb.rb +1 -0
  46. data/lib/nmea_plus/message/nmea/hsc.rb +1 -0
  47. data/lib/nmea_plus/message/nmea/its.rb +1 -0
  48. data/lib/nmea_plus/message/nmea/lcd.rb +1 -0
  49. data/lib/nmea_plus/message/nmea/msk.rb +1 -0
  50. data/lib/nmea_plus/message/nmea/mss.rb +1 -0
  51. data/lib/nmea_plus/message/nmea/mtw.rb +1 -0
  52. data/lib/nmea_plus/message/nmea/mwv.rb +1 -0
  53. data/lib/nmea_plus/message/nmea/oln.rb +1 -0
  54. data/lib/nmea_plus/message/nmea/osd.rb +1 -0
  55. data/lib/nmea_plus/message/nmea/pashr.rb +1 -0
  56. data/lib/nmea_plus/message/nmea/r00.rb +1 -0
  57. data/lib/nmea_plus/message/nmea/rma.rb +1 -0
  58. data/lib/nmea_plus/message/nmea/rmb.rb +1 -0
  59. data/lib/nmea_plus/message/nmea/rmc.rb +1 -0
  60. data/lib/nmea_plus/message/nmea/rot.rb +1 -0
  61. data/lib/nmea_plus/message/nmea/rpm.rb +1 -0
  62. data/lib/nmea_plus/message/nmea/rsa.rb +1 -0
  63. data/lib/nmea_plus/message/nmea/rsd.rb +1 -0
  64. data/lib/nmea_plus/message/nmea/rte.rb +1 -0
  65. data/lib/nmea_plus/message/nmea/sfi.rb +1 -0
  66. data/lib/nmea_plus/message/nmea/stn.rb +1 -0
  67. data/lib/nmea_plus/message/nmea/tds.rb +1 -0
  68. data/lib/nmea_plus/message/nmea/tfi.rb +1 -0
  69. data/lib/nmea_plus/message/nmea/tpc.rb +1 -0
  70. data/lib/nmea_plus/message/nmea/tpr.rb +1 -0
  71. data/lib/nmea_plus/message/nmea/tpt.rb +1 -0
  72. data/lib/nmea_plus/message/nmea/trf.rb +1 -0
  73. data/lib/nmea_plus/message/nmea/ttm.rb +1 -0
  74. data/lib/nmea_plus/message/nmea/vbw.rb +1 -0
  75. data/lib/nmea_plus/message/nmea/vdr.rb +1 -0
  76. data/lib/nmea_plus/message/nmea/vhw.rb +1 -0
  77. data/lib/nmea_plus/message/nmea/vlw.rb +1 -0
  78. data/lib/nmea_plus/message/nmea/vpw.rb +1 -0
  79. data/lib/nmea_plus/message/nmea/vtg.rb +1 -0
  80. data/lib/nmea_plus/message/nmea/vwr.rb +1 -0
  81. data/lib/nmea_plus/message/nmea/wcv.rb +1 -0
  82. data/lib/nmea_plus/message/nmea/wnc.rb +1 -0
  83. data/lib/nmea_plus/message/nmea/wpl.rb +1 -0
  84. data/lib/nmea_plus/message/nmea/xdr.rb +1 -0
  85. data/lib/nmea_plus/message/nmea/xte.rb +1 -0
  86. data/lib/nmea_plus/message/nmea/xtr.rb +1 -0
  87. data/lib/nmea_plus/message/nmea/zda.rb +1 -0
  88. data/lib/nmea_plus/message/nmea/zfo.rb +1 -0
  89. data/lib/nmea_plus/message/nmea/ztg.rb +1 -0
  90. data/lib/nmea_plus/version.rb +1 -1
  91. metadata +8 -4
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # RSA - Rudder Sensor Angle
6
7
  class RSA < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  # single rudder or starboard rudder are the same fields
8
9
  field_reader :rudder_angle, 1, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # RSD - RADAR System Data
6
7
  class RSD < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :cursor_range_from_ownship, 9, :_float
8
9
  field_reader :cursor_bearing_degrees_clockwise, 10, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # RTE - Routes
6
7
  class RTE < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :total_messages, 1, :_integer
8
9
  field_reader :message_number, 2, :_integer
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # SFI - Scanning Frequency Information
6
7
  class SFI < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :total_messages, 1, :_integer
8
9
  field_reader :message_number, 2, :_integer
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # STN - Multiple Data ID
6
7
  class STN < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :talker_id, 1, :_float
8
9
  end
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TDS - Trawl Door Spread Distance
6
7
  class TDS < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :door_spread_distance_meters, 1, :_float
8
9
  end
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TFI - Trawl Filling Indicator
6
7
  class TFI < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :catch_sensor1, 1, :_integer
8
9
  field_reader :catch_sensor2, 2, :_integer
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TPC - Trawl Position Cartesian Coordinates
6
7
  class TPC < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :distance_abeam_meters, 1, :_float
8
9
  field_reader :distance_abaft_meters, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TPR - Trawl Position Relative Vessel
6
7
  class TPR < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :range_meters, 1, :_float
8
9
  field_reader :bearing_degrees, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TPT - Trawl Position True
6
7
  class TPT < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :range_meters, 1, :_float
8
9
  field_reader :bearing_true_degrees, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TRF - TRANSIT Fix Data
6
7
  class TRF < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  # @!parse attr_reader :utc_time
8
9
  # @return [Time]
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # TTM - Tracked Target Message
6
7
  class TTM < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :target_number, 1, :_integer
8
9
  field_reader :target_distance, 2, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VBW - Dual Ground/Water Speed
6
7
  class VBW < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :longitudinal_water_speed, 1, :_float
8
9
  field_reader :transverse_water_speed, 2, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VDR - Set and Drift
6
7
  class VDR < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :degrees_true, 1, :_float
8
9
  field_reader :degrees_magnetic, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VHW - Water speed and heading
6
7
  class VHW < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :degrees_true, 1, :_float
8
9
  field_reader :degrees_magnetic, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VLW - Distance Traveled through Water
6
7
  class VLW < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :total_distance_nautical_miles, 1, :_float
8
9
  field_reader :distance_since_reset_nautical_miles, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VPW - Speed - Measured Parallel to Wind
6
7
  class VPW < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :parallel_wind_speed_knots, 1, :_float
8
9
  field_reader :parallel_wind_speed_ms, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VTG - Track made good and Ground speed
6
7
  class VTG < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  # whether this is the new format. docs say check field #2 for value "2"
8
9
  # @return [bool]
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # VWR - Relative Wind Speed and Angle
6
7
  class VWR < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :wind_direction_degrees, 1, :_float
8
9
  field_reader :wind_direction_bow, 2, :_string
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # WCV - Waypoint Closure Velocity
6
7
  class WCV < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :velocity_knots, 1, :_float
8
9
  field_reader :waypoint_id, 3, :_string
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # WNC - Distance - Waypoint to Waypoint
6
7
  class WNC < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :distance_nautical_miles, 1, :_float
8
9
  field_reader :distance_kilometers, 3, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # WPL - Waypoint Location
6
7
  class WPL < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  # @!parse attr_reader :latitude
8
9
  # @return [Float]
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # XDR - Transducer Measurement
6
7
  class XDR < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :type, 1, :_string
8
9
  field_reader :measurement, 2, :_float
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # XTE - Cross-Track Error, Measured
6
7
  class XTE < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :no_general_warning?, 1, :_av_boolean
8
9
  field_reader :no_cyclelock_warning?, 2, :_av_boolean
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # XTR - Cross Track Error - Dead Reckoning
6
7
  class XTR < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :cross_track_error, 1, :_float
8
9
  field_reader :direction_to_steer, 2, :_string
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # ZDA - Time & Date - UTC, day, month, year and local time zone
6
7
  class ZDA < NMEAPlus::Message::NMEA::NMEAMessage
7
8
 
8
9
  # @!parse attr_reader :utc_time
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # ZFO - UTC & Time from origin Waypoint
6
7
  class ZFO < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :utc_time, 1, :_utctime_hms
8
9
  # field_reader :elapsed_time, 2, :_interval_hms
@@ -3,6 +3,7 @@ require_relative "base_nmea"
3
3
  module NMEAPlus
4
4
  module Message
5
5
  module NMEA
6
+ # ZTG - UTC & Time to Destination Waypoint
6
7
  class ZTG < NMEAPlus::Message::NMEA::NMEAMessage
7
8
  field_reader :utc_time, 1, :_utctime_hms
8
9
  # field_reader :remaining_time, 2, :_interval_hms
@@ -1,3 +1,3 @@
1
1
  module NMEAPlus
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  end
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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Katz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2016-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: racc
@@ -180,8 +180,8 @@ dependencies:
180
180
  version: '0.8'
181
181
  description: "A pure-ruby parser and decoder toolkit for NMEA messages (GPS, AIS,
182
182
  and other similar formats)\n that provides convenient access
183
- to all data fields. Nearly all standard NMEA messages,\n the
184
- most common AIS messages, and some proprietary messages are supported.\n "
183
+ to all data fields. Nearly all standard NMEA messages,\n nearly
184
+ all AIS messages, and some proprietary messages are supported.\n "
185
185
  email:
186
186
  - ifreecarve@gmail.com
187
187
  executables: []
@@ -196,6 +196,7 @@ files:
196
196
  - lib/nmea_plus/generated_parser/tokenizer.rb
197
197
  - lib/nmea_plus/message/ais/base_ais.rb
198
198
  - lib/nmea_plus/message/ais/vdm.rb
199
+ - lib/nmea_plus/message/ais/vdm_payload/payload.rb
199
200
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg.rb
200
201
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg1.rb
201
202
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg12.rb
@@ -204,9 +205,12 @@ files:
204
205
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg20.rb
205
206
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb
206
207
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg24.rb
208
+ - lib/nmea_plus/message/ais/vdm_payload/vdm_msg27.rb
207
209
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg4.rb
208
210
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg5.rb
209
211
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb
212
+ - lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb
213
+ - lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d366f56.rb
210
214
  - lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb
211
215
  - lib/nmea_plus/message/base.rb
212
216
  - lib/nmea_plus/message/nmea/aam.rb