Class: NMEAPlus::Message::NMEA::TRF

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

Overview

TRF - TRANSIT Fix Data Time, date, position and information related to a TRANSIT fix. TRANSIT system is not operational, 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

#doppler_intervalsObject (readonly)

Number of Doppler intervals

Returns:

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


38
# File 'lib/nmea_plus/message/nmea/trf.rb', line 38

field_reader :doppler_intervals, 9, :_integer

#elevation_angleObject (readonly)

Elevation angle

Returns:

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


32
# File 'lib/nmea_plus/message/nmea/trf.rb', line 32

field_reader :elevation_angle, 7, :_float

#iterationsObject (readonly)

Number of iterations

Returns:

  • field 8 of the payload, formatted with the function #_integer


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

field_reader :iterations, 8, :_integer

#latitudeFloat (readonly)

Latitude, N/S

Returns:

  • (Float)

20
21
22
# File 'lib/nmea_plus/message/nmea/trf.rb', line 20

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

#longitudeFloat (readonly)

Longitude, E/W

Returns:

  • (Float)

27
28
29
# File 'lib/nmea_plus/message/nmea/trf.rb', line 27

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

#satelliteObject (readonly)

Satellite ID

Returns:

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


44
# File 'lib/nmea_plus/message/nmea/trf.rb', line 44

field_reader :satellite, 11, :_integer

#update_distance_nautical_milesObject (readonly)

Update distance, nautical miles

Returns:

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


41
# File 'lib/nmea_plus/message/nmea/trf.rb', line 41

field_reader :update_distance_nautical_miles, 10, :_float

#utc_timeTime (readonly)

UTC of position fix: Date and time

Returns:

  • (Time)

13
14
15
# File 'lib/nmea_plus/message/nmea/trf.rb', line 13

def utc_time
  self.class._utc_date_time(@fields[2], @fields[1])
end

#valid?Object (readonly)

Data status

Returns:

  • field 12 of the payload, formatted with the function #_av_boolean


47
# File 'lib/nmea_plus/message/nmea/trf.rb', line 47

field_reader :valid?, 12, :_av_boolean