Class: NMEAPlus::Message::NMEA::SLC::SLCStationReport

Inherits:
Object
  • Object
show all
Defined in:
lib/nmea_plus/message/nmea/slc.rb

Overview

container for Omega lane indicators

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arr, is_master) ⇒ SLCStationReport

Returns a new instance of SLCStationReport.

Parameters:

  • arr (Array<String, Integer>)

    a string and 2 integers

  • is_master (Boolean)

    Whether this station is the master



33
34
35
36
37
38
39
40
# File 'lib/nmea_plus/message/nmea/slc.rb', line 33

def initialize(arr, is_master)
  @arr = arr
  @used_in_calculation  = is_master ? true : NMEA::NMEAMessage._av_boolean(arr[0])
  @blink_warning        = NMEA::NMEAMessage._av_boolean(arr[1])
  @cycle_lock_warning   = NMEA::NMEAMessage._av_boolean(arr[2])
  @snr_warning          = NMEA::NMEAMessage._av_boolean(arr[3])
  @snr                  = arr[4].to_i
end

Instance Attribute Details

Status: Blink Warning Flag

Returns:

  • (Boolean)


17
18
19
# File 'lib/nmea_plus/message/nmea/slc.rb', line 17

def blink_warning
  @blink_warning
end

#cycle_lock_warningBoolean (readonly)

Status: Cycle Lock Warning Flag

Returns:

  • (Boolean)


21
22
23
# File 'lib/nmea_plus/message/nmea/slc.rb', line 21

def cycle_lock_warning
  @cycle_lock_warning
end

#snrInteger (readonly)

SNR value, 000 to 999

Returns:

  • (Integer)


29
30
31
# File 'lib/nmea_plus/message/nmea/slc.rb', line 29

def snr
  @snr
end

#snr_warningBoolean (readonly)

Status: SNR Warning Flag

Returns:

  • (Boolean)


25
26
27
# File 'lib/nmea_plus/message/nmea/slc.rb', line 25

def snr_warning
  @snr_warning
end

#used_in_calculationBoolean (readonly)

Used in lat/lon calculation

Returns:

  • (Boolean)


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

def used_in_calculation
  @used_in_calculation
end