Class: NMEAPlus::Message::NMEA::IMA
- Inherits:
-
NMEAMessage
- Object
- Base
- NMEAMessage
- NMEAPlus::Message::NMEA::IMA
- Defined in:
- lib/nmea_plus/message/nmea/ima.rb
Overview
IMA - Vessel Identification Limited utility, no recommended replacement
Instance Attribute Summary collapse
-
#call_sign ⇒ Object
readonly
Radio call sign.
-
#latitude ⇒ Float
readonly
Latitude, N/S.
-
#longitude ⇒ Float
readonly
Longitude, E/W.
-
#magnetic_heading_degrees ⇒ Object
readonly
Heading, degrees Magnetic.
-
#speed_knots ⇒ Object
readonly
Speed, knots.
-
#true_heading_degrees ⇒ Object
readonly
Heading, degrees True.
-
#vessel_name ⇒ Object
readonly
12 character vessel name.
Attributes inherited from NMEAMessage
Attributes inherited from Base
#checksum, #data_type, #fields, #interpreted_data_type, #message_number, #next_part, #original, #payload, #prefix, #total_messages
Method Summary
Methods inherited from NMEAMessage
Methods inherited from Base
_float, _hex_to_integer, #_highest_contiguous_index, _integer, _interval_hms, _string, _utc_date_time, _utctime_hms, #add_message_part, #all_checksums_ok?, #all_messages_received?, #calculated_checksum, #checksum_ok?, degrees_minutes_to_decimal, field_reader, #highest_contiguous_index, nsew_signed_float
Instance Attribute Details
#call_sign ⇒ Object (readonly)
Radio call sign
13 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 13 field_reader :call_sign, 2, :_string |
#latitude ⇒ Float (readonly)
Latitude, N/S
18 19 20 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 18 def latitude self.class.degrees_minutes_to_decimal(@fields[3], @fields[4]) end |
#longitude ⇒ Float (readonly)
Longitude, E/W
25 26 27 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 25 def longitude self.class.degrees_minutes_to_decimal(@fields[5], @fields[6]) end |
#magnetic_heading_degrees ⇒ Object (readonly)
Heading, degrees Magnetic
33 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 33 field_reader :magnetic_heading_degrees, 9, :_float |
#speed_knots ⇒ Object (readonly)
Speed, knots
36 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 36 field_reader :speed_knots, 11, :_float |
#true_heading_degrees ⇒ Object (readonly)
Heading, degrees True
30 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 30 field_reader :true_heading_degrees, 7, :_float |
#vessel_name ⇒ Object (readonly)
12 character vessel name
10 |
# File 'lib/nmea_plus/message/nmea/ima.rb', line 10 field_reader :vessel_name, 1, :_string |