Class: NMEAPlus::Message::NMEA::GDA

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

Overview

GDA - Dead Reckoning Positions

The use of waypoint location $–WPL (for past positions) or $–GLL (for present position) followed by time tag $–ZDA is recommended for reporting past or present waypoint times; $–WPL followed by $–ZTG is recommended for estimated time.

See Also:

Direct Known Subclasses

GDF, GDP, GLA, GLF, GLP, GOA, GOF, GOP, GXA

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

#fix_timeObject (readonly)

UTC of position fix

Returns:



18
# File 'lib/nmea_plus/message/nmea/gda.rb', line 18

field_reader :fix_time, 1, :_utctime_hms

#latitudeFloat (readonly)

Latitude - N/S

Returns:

  • (Float)


23
24
25
# File 'lib/nmea_plus/message/nmea/gda.rb', line 23

def latitude
  self.class.degrees_minutes_to_decimal(@fields[2], @fields[3])
end

#longitudeFloat (readonly)

Longitude - E/W

Returns:

  • (Float)


30
31
32
# File 'lib/nmea_plus/message/nmea/gda.rb', line 30

def longitude
  self.class.degrees_minutes_to_decimal(@fields[4], @fields[5])
end

#waypoint_idObject (readonly)

Waypoint ID

Returns:

  • field 6 of the payload, formatted with the function Base._string



35
# File 'lib/nmea_plus/message/nmea/gda.rb', line 35

field_reader :waypoint_id, 6, :_string