Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsgClassBCSPosition
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb
Overview
Base class for “Class B CS Position Report” messages (18 and 19)
Instance Attribute Summary collapse
-
#course_over_ground ⇒ Object
readonly
The field defined by the 12 bits starting at payload bit 112, formatted with the function Payload#_U(10, , ).
-
#latitude ⇒ Object
readonly
The field defined by the 27 bits starting at payload bit 85, formatted with the function Payload#_I(60 * 10**4, 91, ).
-
#longitude ⇒ Object
readonly
The field defined by the 28 bits starting at payload bit 57, formatted with the function Payload#_I(60 * 10**4, 181, ).
-
#position_10m_accuracy? ⇒ Object
readonly
The field defined by the 1 bits starting at payload bit 56, formatted with the function Payload#_b(, , ).
-
#speed_over_ground ⇒ Object
readonly
The field defined by the 10 bits starting at payload bit 46, formatted with the function Payload#_U(10, , ).
-
#time_stamp ⇒ Object
readonly
The field defined by the 6 bits starting at payload bit 133, formatted with the function Payload#_u(, , ).
-
#true_heading ⇒ Object
readonly
The field defined by the 9 bits starting at payload bit 124, formatted with the function Payload#_u(511, , ).
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_ground ⇒ Object (readonly)
Returns The field defined by the 12 bits starting at payload bit 112, formatted with the function Payload#_U(10, , ).
16 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 16 payload_reader :course_over_ground, 112, 12, :_U, 10 |
#latitude ⇒ Object (readonly)
Returns The field defined by the 27 bits starting at payload bit 85, formatted with the function Payload#_I(60 * 10**4, 91, ).
15 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 15 payload_reader :latitude, 85, 27, :_I, 60 * 10**4, 91 |
#longitude ⇒ Object (readonly)
Returns The field defined by the 28 bits starting at payload bit 57, formatted with the function Payload#_I(60 * 10**4, 181, ).
14 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 14 payload_reader :longitude, 57, 28, :_I, 60 * 10**4, 181 |
#position_10m_accuracy? ⇒ Object (readonly)
Returns The field defined by the 1 bits starting at payload bit 56, formatted with the function Payload#_b(, , ).
13 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 13 payload_reader :position_10m_accuracy?, 56, 1, :_b |
#speed_over_ground ⇒ Object (readonly)
Returns The field defined by the 10 bits starting at payload bit 46, formatted with the function Payload#_U(10, , ).
12 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 12 payload_reader :speed_over_ground, 46, 10, :_U, 10 |
#time_stamp ⇒ Object (readonly)
Returns The field defined by the 6 bits starting at payload bit 133, formatted with the function Payload#_u(, , ).
18 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 18 payload_reader :time_stamp, 133, 6, :_u |
#true_heading ⇒ Object (readonly)
Returns The field defined by the 9 bits starting at payload bit 124, formatted with the function Payload#_u(511, , ).
17 |
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_class_b_cs_position.rb', line 17 payload_reader :true_heading, 124, 9, :_u, 511 |