Method: NMEAPlus::Message::NMEA::SYS#systems

Defined in:
lib/nmea_plus/message/nmea/sys.rb,
lib/nmea_plus/message/nmea/sys.rb
more...

#systemsArray<Symbol> (readonly)

Systems in use

Returns:

  • (Array<Symbol>)
[View source]

13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/nmea_plus/message/nmea/sys.rb', line 13

def systems
  abbr = {
    'L' => :loran_c,
    'O' => :omega,
    'T' => :transit,
    'G' => :gps,
    'D' => :decca
  }

  # drop blank fields and convert to symbol
  @fields[1..5].reject(&:empty?).map { |x| abbr[x] }
end