Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg9
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb
Overview
Type 9: Standard SAR Aircraft Position Report
Instance Attribute Summary collapse
-
#altitude_meters ⇒ Object
readonly
The field defined by 12 bits starting at bit 38 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
-
#assigned? ⇒ Object
readonly
The field defined by 1 bits starting at bit 146 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
-
#course_over_ground ⇒ Object
readonly
The field defined by 12 bits starting at bit 116 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_U(1).
-
#dte? ⇒ Object
readonly
The field defined by 1 bits starting at bit 142 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
- #latitude ⇒ Float readonly
- #longitude ⇒ Float readonly
-
#position_10m_accuracy? ⇒ Object
readonly
The field defined by 1 bits starting at bit 60 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
-
#raim? ⇒ Object
readonly
The field defined by 1 bits starting at bit 147 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_b().
-
#speed_over_ground ⇒ Object
readonly
The field defined by 10 bits starting at bit 50 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_U(1).
-
#time_stamp ⇒ Object
readonly
The field defined by 6 bits starting at bit 128 of the payload, formatted with the function NMEAPlus::Message::AIS::VDMPayload::VDMMsg#_u().
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_meters ⇒ Object (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().
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().
31 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 31 payload_reader :assigned?, 146, 1, :_b |
#course_over_ground ⇒ Object (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).
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().
29 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 29 payload_reader :dte?, 142, 1, :_b |
#latitude ⇒ Float (readonly)
23 24 25 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 23 def latitude _U(89, 27, 4) / 60 end |
#longitude ⇒ Float (readonly)
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().
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().
32 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 32 payload_reader :raim?, 147, 1, :_b |
#speed_over_ground ⇒ Object (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).
12 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 12 payload_reader :speed_over_ground, 50, 10, :_U, 1 |
#time_stamp ⇒ Object (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().
28 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg9.rb', line 28 payload_reader :time_stamp, 128, 6, :_u |