Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg8

Inherits:
VDMMsg
  • Object
show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb

Instance Attribute Summary collapse

Attributes inherited from VDMMsg

#fill_bits, #message_type, #payload_bitstring, #repeat_indicator, #source_mmsi

Method Summary

Methods inherited from VDMMsg

#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_string, #_6b_string_nullterminated, #_6b_twoscomplement, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_8b_data_string, #_access, #_bit_slices, payload_reader

Instance Attribute Details

#ais_versionObject (readonly)

Returns The field defined by 2 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



14
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 14

payload_reader :ais_version, 38, 2, :_u

#application_data_2bObject (readonly)

Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_d().

Returns:



10
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 10

payload_reader :application_data_2b, 56, 952, :_d

#application_data_6bObject (readonly)

Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_6b_string().

Returns:



11
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 11

payload_reader :application_data_6b, 56, 952, :_6b_string

#application_data_8bObject (readonly)

Returns The field defined by 952 bits starting at bit 56 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_8b_data_string().

Returns:



12
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 12

payload_reader :application_data_8b, 56, 952, :_8b_data_string

#callsignObject (readonly)

Returns The field defined by 42 bits starting at bit 70 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().

Returns:



16
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 16

payload_reader :callsign, 70, 42, :_t

#designated_area_codeObject (readonly)

Returns The field defined by 10 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



8
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 8

payload_reader :designated_area_code, 40, 10, :_u

#destinationObject (readonly)

Returns The field defined by 120 bits starting at bit 302 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().

Returns:



38
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 38

payload_reader :destination, 302, 120, :_t

#dte?Object (readonly)

Returns The field defined by 1 bits starting at bit 422 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().

Returns:



39
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 39

payload_reader :dte?, 422, 1, :_b

#epfd_typeObject (readonly)

Returns The field defined by 4 bits starting at bit 270 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().

Returns:



23
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 23

payload_reader :epfd_type, 270, 4, :_e

#etaTime (readonly)

Returns:

  • (Time)


27
28
29
30
31
32
33
34
35
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 27

def eta
  now = Time.now
  Time.new(now.year,
           _u(274, 4),
           _u(278, 5),
           _u(283, 5),
           _u(288, 6),
           0)
end

#functional_idObject (readonly)

Returns The field defined by 6 bits starting at bit 50 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



9
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 9

payload_reader :functional_id, 50, 6, :_u

#imo_numberObject (readonly)

Returns The field defined by 30 bits starting at bit 40 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



15
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 15

payload_reader :imo_number, 40, 30, :_u

#nameObject (readonly)

Returns The field defined by 120 bits starting at bit 112 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_t().

Returns:



17
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 17

payload_reader :name, 112, 120, :_t

#ship_cargo_typeObject (readonly)

Returns The field defined by 8 bits starting at bit 232 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_e().

Returns:



18
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 18

payload_reader :ship_cargo_type, 232, 8, :_e

#ship_dimension_to_bowObject (readonly)

Returns The field defined by 9 bits starting at bit 240 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



19
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 19

payload_reader :ship_dimension_to_bow, 240, 9, :_u

#ship_dimension_to_portObject (readonly)

Returns The field defined by 6 bits starting at bit 258 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



21
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 21

payload_reader :ship_dimension_to_port, 258, 6, :_u

#ship_dimension_to_starboardObject (readonly)

Returns The field defined by 6 bits starting at bit 264 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



22
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 22

payload_reader :ship_dimension_to_starboard, 264, 6, :_u

#ship_dimension_to_sternObject (readonly)

Returns The field defined by 9 bits starting at bit 249 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().

Returns:



20
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 20

payload_reader :ship_dimension_to_stern, 249, 9, :_u

#static_draughtObject (readonly)

Returns The field defined by 8 bits starting at bit 294 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_U(1).

Returns:



37
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb', line 37

payload_reader :static_draught, 294, 8, :_U, 1