Class: NMEAPlus::Message::NMEA::SLC::SLCStationReport
- Inherits:
-
Object
- Object
- NMEAPlus::Message::NMEA::SLC::SLCStationReport
- Defined in:
- lib/nmea_plus/message/nmea/slc.rb
Overview
container for Omega lane indicators
Instance Attribute Summary collapse
-
#blink_warning ⇒ Boolean
readonly
Status: Blink Warning Flag.
-
#cycle_lock_warning ⇒ Boolean
readonly
Status: Cycle Lock Warning Flag.
-
#snr ⇒ Integer
readonly
SNR value, 000 to 999.
-
#snr_warning ⇒ Boolean
readonly
Status: SNR Warning Flag.
-
#used_in_calculation ⇒ Boolean
readonly
Used in lat/lon calculation.
Instance Method Summary collapse
-
#initialize(arr, is_master) ⇒ SLCStationReport
constructor
A new instance of SLCStationReport.
Constructor Details
#initialize(arr, is_master) ⇒ SLCStationReport
Returns a new instance of SLCStationReport.
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
#blink_warning ⇒ Boolean (readonly)
Status: Blink Warning Flag
17 18 19 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 17 def blink_warning @blink_warning end |
#cycle_lock_warning ⇒ Boolean (readonly)
Status: Cycle Lock Warning Flag
21 22 23 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 21 def cycle_lock_warning @cycle_lock_warning end |
#snr ⇒ Integer (readonly)
SNR value, 000 to 999
29 30 31 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 29 def snr @snr end |
#snr_warning ⇒ Boolean (readonly)
Status: SNR Warning Flag
25 26 27 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 25 def snr_warning @snr_warning end |
#used_in_calculation ⇒ Boolean (readonly)
Used in lat/lon calculation
13 14 15 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 13 def used_in_calculation @used_in_calculation end |