Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsgStationReport

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

Overview

Base class for “base station reports”

See Also:

Direct Known Subclasses

VDMMsg11, VDMMsg4

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

#current_timeTime (readonly)

Returns current time in UTC.

Returns:

  • (Time)

    current time in UTC



15
16
17
18
19
20
21
22
23
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_station_report.rb', line 15

def current_time
  Time.new(_u(38, 14),
           _u(52, 4),
           _u(56, 5),
           _u(61, 5),
           _u(66, 6),
           _u(72, 6),
           '+00:00')
end

#epfd_typeObject (readonly)

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

Returns:

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



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

payload_reader :epfd_type, 134, 4, :_e

#latitudeObject (readonly)

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

Returns:

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



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

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

#longitudeObject (readonly)

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

Returns:

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



26
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg_station_report.rb', line 26

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

#position_10m_accuracy?Object (readonly)

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

Returns:

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



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

payload_reader :position_10m_accuracy?, 78, 1, :_b

#raim?Object (readonly)

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

Returns:

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



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

payload_reader :raim?, 148, 1, :_b