Class: NMEAPlus::Message::AIS::VDMPayload::SubArea1
- Inherits:
-
SubAreaAnchored
- Object
- Payload
- SubArea
- SubAreaScaled
- SubAreaAnchored
- NMEAPlus::Message::AIS::VDMPayload::SubArea1
- Defined in:
- lib/nmea_plus/message/ais/vdm_payload/sub_area.rb
Overview
SubArea structure type 1: Rectangle
Instance Attribute Summary collapse
-
#dimension_east ⇒ Object
readonly
The field defined by the 8 bits starting at payload bit 57, formatted with the function Payload#_u(, , ).
-
#dimension_east_meters ⇒ Integer
readonly
Box dimension in meters, according to scale factor.
-
#dimension_north ⇒ Object
readonly
The field defined by the 8 bits starting at payload bit 65, formatted with the function Payload#_u(, , ).
-
#orientation ⇒ Object
readonly
The field defined by the 9 bits starting at payload bit 73, formatted with the function Payload#_u(, , ).
Attributes inherited from SubAreaAnchored
#latitude, #longitude, #precision
Attributes inherited from SubAreaScaled
Attributes inherited from SubArea
Attributes inherited from Payload
#fill_bits, #payload_bitstring
Instance Method Summary collapse
-
#dimension_north_meters ⇒ Integer
Box dimension in meters, according to scale factor.
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
#dimension_east ⇒ Object (readonly)
Returns The field defined by the 8 bits starting at payload bit 57, formatted with the function Payload#_u(, , ).
61 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 61 payload_reader :dimension_east, 57, 8, :_u |
#dimension_east_meters ⇒ Integer (readonly)
Returns Box dimension in meters, according to scale factor.
68 69 70 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 68 def dimension_east_meters dimension_east * scale_meters end |
#dimension_north ⇒ Object (readonly)
Returns The field defined by the 8 bits starting at payload bit 65, formatted with the function Payload#_u(, , ).
62 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 62 payload_reader :dimension_north, 65, 8, :_u |
#orientation ⇒ Object (readonly)
Returns The field defined by the 9 bits starting at payload bit 73, formatted with the function Payload#_u(, , ).
64 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 64 payload_reader :orientation, 73, 9, :_u |
Instance Method Details
#dimension_north_meters ⇒ Integer
Returns Box dimension in meters, according to scale factor.
74 75 76 |
# File 'lib/nmea_plus/message/ais/vdm_payload/sub_area.rb', line 74 def dimension_north_meters dimension_north * scale_meters end |