Class: NMEAPlus::Message::NMEA::TIF

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

Overview

TIF - TRANSIT Satellite Initial Flag 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

#initial_flagSymbol (readonly)

Satellite Initial Flag

Returns:

  • (Symbol)


13
14
15
16
17
18
19
# File 'lib/nmea_plus/message/nmea/tif.rb', line 13

def initial_flag
  case @fields[1]
  when 'A' then :normal_operation
  when 'V' then :set_initialization_data
  when 'J' then :initialization_data_complete
  end
end

#initial_flag_descriptionString (readonly)

Description of initial flag

Returns:

  • (String)


24
25
26
27
28
29
30
# File 'lib/nmea_plus/message/nmea/tif.rb', line 24

def initial_flag_description
  case initial_flag
  when :normal_operation then 'Normal operation'
  when :set_initialization_data then 'Set initialization data'
  when :initialization_data_complete then 'Initialization data complete'
  end
end