Class: NMEAPlus::Message::NMEA::IMA

Inherits:
NMEAMessage show all
Defined in:
lib/nmea_plus/message/nmea/ima.rb

Overview

IMA - Vessel Identification Limited utility, no recommended replacement

Instance Attribute Summary collapse

Attributes inherited from NMEAMessage

#message_type, #talker

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

_10_boolean, _av_boolean

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_signObject (readonly)

Radio call sign

Returns:

  • field 2 of the payload, formatted with the function #_string



13
# File 'lib/nmea_plus/message/nmea/ima.rb', line 13

field_reader :call_sign, 2, :_string

#latitudeFloat (readonly)

Latitude, N/S

Returns:

  • (Float)


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

#longitudeFloat (readonly)

Longitude, E/W

Returns:

  • (Float)


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_degreesObject (readonly)

Heading, degrees Magnetic

Returns:

  • field 9 of the payload, formatted with the function #_float



33
# File 'lib/nmea_plus/message/nmea/ima.rb', line 33

field_reader :magnetic_heading_degrees, 9, :_float

#speed_knotsObject (readonly)

Speed, knots

Returns:

  • field 11 of the payload, formatted with the function #_float



36
# File 'lib/nmea_plus/message/nmea/ima.rb', line 36

field_reader :speed_knots, 11, :_float

#true_heading_degreesObject (readonly)

Heading, degrees True

Returns:

  • field 7 of the payload, formatted with the function #_float



30
# File 'lib/nmea_plus/message/nmea/ima.rb', line 30

field_reader :true_heading_degrees, 7, :_float

#vessel_nameObject (readonly)

12 character vessel name

Returns:

  • field 1 of the payload, formatted with the function #_string



10
# File 'lib/nmea_plus/message/nmea/ima.rb', line 10

field_reader :vessel_name, 1, :_string