Class: NMEAPlus::Message::AIS::VDMPayload::SubAreaAnchored

Inherits:
SubAreaScaled show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/sub_area.rb

Overview

SubArea structure base type for a region anchored to a point

Direct Known Subclasses

SubArea0, SubArea1, SubArea2

Instance Attribute Summary collapse

Attributes inherited from SubAreaScaled

#scale_factor, #scale_meters

Attributes inherited from SubArea

#shape_description, #shape_id

Attributes inherited from Payload

#fill_bits, #payload_bitstring

Method Summary

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

#latitudeObject (readonly)

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

Returns:

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



44
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 44

payload_reader :latitude, 30, 24, :_I, 60 * 10**3, 91

#longitudeObject (readonly)

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

Returns:

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



43
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 43

payload_reader :longitude, 5, 25, :_I, 60 * 10**3, 181

#precisionObject (readonly)

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

Returns:

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



45
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 45

payload_reader :precision, 54, 3, :_u