Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg27

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

Overview

AIS Type 27: Long Range AIS Broadcast message

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

#course_over_groundObject (readonly)

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

Returns:

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



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

payload_reader :course_over_ground, 85, 9, :_u, 511

#gnss?Object (readonly)

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

Returns:

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



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

payload_reader :gnss?, 94, 1, :_b

#latitudeObject (readonly)

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

Returns:

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



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

payload_reader :latitude, 62, 17, :_I, 60 * 10, 91

#longitudeObject (readonly)

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

Returns:

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



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

payload_reader :longitude, 44, 18, :_I, 60 * 10, 181

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

Returns:

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



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

payload_reader :navigational_status, 40, 4, :_u

Returns the human-readable description of navigational status.

Returns:

  • (String)

    the human-readable description of navigational status



17
18
19
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg27.rb', line 17

def navigational_status_description
  get_navigational_status_description(navigational_status)
end

#position_10m_accuracy?Object (readonly)

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

Returns:

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



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

payload_reader :position_10m_accuracy?, 38, 1, :_b

#raim?Object (readonly)

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

Returns:

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



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

payload_reader :raim?, 39, 1, :_b

#speed_over_groundObject (readonly)

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

Returns:

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



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

payload_reader :speed_over_ground, 79, 6, :_u