Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg9

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

Overview

Type 9: Standard SAR Aircraft Position Report

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, #get_ship_cargo_type_description, payload_reader

Instance Attribute Details

#altitude_metersObject (readonly)

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

Returns:



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

payload_reader :altitude_meters, 38, 12, :_u

#assigned?Object (readonly)

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

Returns:



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

payload_reader :assigned?, 146, 1, :_b

#course_over_groundObject (readonly)

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

Returns:



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

payload_reader :course_over_ground, 116, 12, :_U, 1

#dte?Object (readonly)

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

Returns:



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

payload_reader :dte?, 142, 1, :_b

#latitudeFloat (readonly)

Returns:

  • (Float)


23
24
25
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 23

def latitude
  _U(89, 27, 4) / 60
end

#longitudeFloat (readonly)

Returns:

  • (Float)


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

def longitude
  _I(61, 28, 4) / 60
end

#position_10m_accuracy?Object (readonly)

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

Returns:



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

payload_reader :position_10m_accuracy?, 60, 1, :_b

#raim?Object (readonly)

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

Returns:



32
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 32

payload_reader :raim?, 147, 1, :_b

#speed_over_groundObject (readonly)

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

Returns:



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

payload_reader :speed_over_ground, 50, 10, :_U, 1

#time_stampObject (readonly)

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

Returns:



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

payload_reader :time_stamp, 128, 6, :_u