Class: NMEAPlus::Message::NMEA::GDA
- Inherits:
-
NMEAMessage
- Object
- Base
- NMEAMessage
- NMEAPlus::Message::NMEA::GDA
- 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.
Instance Attribute Summary collapse
-
#fix_time ⇒ Object
readonly
UTC of position fix.
-
#latitude ⇒ Float
readonly
Latitude - N/S.
-
#longitude ⇒ Float
readonly
Longitude - E/W.
-
#waypoint_id ⇒ Object
readonly
Waypoint ID.
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
#fix_time ⇒ Object (readonly)
UTC of position fix
18 |
# File 'lib/nmea_plus/message/nmea/gda.rb', line 18 field_reader :fix_time, 1, :_utctime_hms |
#latitude ⇒ Float (readonly)
Latitude - N/S
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 |
#longitude ⇒ Float (readonly)
Longitude - E/W
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_id ⇒ Object (readonly)
Waypoint ID
35 |
# File 'lib/nmea_plus/message/nmea/gda.rb', line 35 field_reader :waypoint_id, 6, :_string |