Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg21

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

Overview

AIS Type 21: Aid-to-Navigation Report

Instance Attribute Summary collapse

Attributes inherited from VDMMsg

#message_type, #repeat_indicator, #source_mmsi, #source_mmsi_info

Attributes inherited from Payload

#fill_bits, #payload_bitstring

Method Summary

Methods inherited from VDMMsg

#auxiliary_craft?, #get_navigational_status_description, #get_ship_cargo_type_description

Methods inherited from Payload

#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_integer_scaled_shifted, #_6b_negated_boolean, #_6b_string, #_6b_string_nullterminated, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_6b_unsigned_integer_scaled_shifted, #_8b_data_string, #_access, #_bit_slices, #_get_date_mdhm, #_object_by_name, #initialize, payload_reader

Constructor Details

This class inherits a constructor from NMEAPlus::Message::AIS::VDMPayload::Payload

Instance Attribute Details

#aid_typeObject (readonly)

TODO: Navaid type descriptions (there are 32 of them)

Returns:

  • The field defined by the 5 bits starting at payload bit 38, formatted with the function Payload#_e(, , )



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

payload_reader :aid_type, 38, 5, :_e

#assigned?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 270, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 270, formatted with the function Payload#_b(, , )



29
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 29

payload_reader :assigned?, 270, 1, :_b

#epfd_typeObject (readonly)

Returns The field defined by the 4 bits starting at payload bit 249, formatted with the function Payload#_e(, , ).

Returns:

  • The field defined by the 4 bits starting at payload bit 249, formatted with the function Payload#_e(, , )



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

payload_reader :epfd_type, 249, 4, :_e

#latitudeObject (readonly)

Returns The field defined by the 27 bits starting at payload bit 192, formatted with the function Payload#_I(60 * 10**4, 91, ).

Returns:

  • The field defined by the 27 bits starting at payload bit 192, formatted with the function Payload#_I(60 * 10**4, 91, )



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

payload_reader :latitude, 192, 27, :_I, 60 * 10**4, 91

#longitudeObject (readonly)

Returns The field defined by the 28 bits starting at payload bit 164, formatted with the function Payload#_I(60 * 10**4, 181, ).

Returns:

  • The field defined by the 28 bits starting at payload bit 164, formatted with the function Payload#_I(60 * 10**4, 181, )



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

payload_reader :longitude, 164, 28, :_I, 60 * 10**4, 181

#nameObject (readonly)

Returns The field defined by the 120 bits starting at payload bit 43, formatted with the function Payload#_t(, , ).

Returns:

  • The field defined by the 120 bits starting at payload bit 43, formatted with the function Payload#_t(, , )



13
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 13

payload_reader :name, 43, 120, :_t

#name_extensionObject (readonly)

Returns The field defined by the 88 bits starting at payload bit 272, formatted with the function Payload#_t(, , ).

Returns:

  • The field defined by the 88 bits starting at payload bit 272, formatted with the function Payload#_t(, , )



31
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 31

payload_reader :name_extension, 272, 88, :_t

#off_position?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 259, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 259, formatted with the function Payload#_b(, , )



25
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 25

payload_reader :off_position?, 259, 1, :_b

#position_10m_accuracy?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 163, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 163, formatted with the function Payload#_b(, , )



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

payload_reader :position_10m_accuracy?, 163, 1, :_b

#raim?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 268, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 268, formatted with the function Payload#_b(, , )



27
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 27

payload_reader :raim?, 268, 1, :_b

#ship_dimension_to_bowObject (readonly)

Returns The field defined by the 9 bits starting at payload bit 219, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 9 bits starting at payload bit 219, formatted with the function Payload#_u(, , )



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

payload_reader :ship_dimension_to_bow, 219, 9, :_u

#ship_dimension_to_portObject (readonly)

Returns The field defined by the 6 bits starting at payload bit 237, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 6 bits starting at payload bit 237, formatted with the function Payload#_u(, , )



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

payload_reader :ship_dimension_to_port, 237, 6, :_u

#ship_dimension_to_starboardObject (readonly)

Returns The field defined by the 6 bits starting at payload bit 243, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 6 bits starting at payload bit 243, formatted with the function Payload#_u(, , )



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

payload_reader :ship_dimension_to_starboard, 243, 6, :_u

#ship_dimension_to_sternObject (readonly)

Returns The field defined by the 9 bits starting at payload bit 228, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 9 bits starting at payload bit 228, formatted with the function Payload#_u(, , )



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

payload_reader :ship_dimension_to_stern, 228, 9, :_u

#time_stampObject (readonly)

Returns The field defined by the 6 bits starting at payload bit 253, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 6 bits starting at payload bit 253, formatted with the function Payload#_u(, , )



24
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 24

payload_reader :time_stamp, 253, 6, :_u

#virtual_aid?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 269, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 269, formatted with the function Payload#_b(, , )



28
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg21.rb', line 28

payload_reader :virtual_aid?, 269, 1, :_b