Class: NMEAPlus::Message::NMEA::SLC
- Inherits:
-
NMEAMessage
- Object
- Base
- NMEAMessage
- NMEAPlus::Message::NMEA::SLC
- Defined in:
- lib/nmea_plus/message/nmea/slc.rb
Overview
SLC - Loran-C Status
Defined Under Namespace
Classes: SLCStationReport
Instance Attribute Summary collapse
-
#master_station ⇒ SLCStationReport
readonly
station Status.
-
#stations ⇒ Array<SLCStationReport>
readonly
Station statuses.
Attributes inherited from NMEAMessage
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
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
#master_station ⇒ SLCStationReport (readonly)
station Status
45 46 47 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 45 def master_station SLCStationReport.new(@fields[0..4], true) end |
#stations ⇒ Array<SLCStationReport> (readonly)
Station statuses. Master station at index 0, all secondary stations at their index number
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/nmea_plus/message/nmea/slc.rb', line 52 def stations [ master_station, SLCStationReport.new(@fields[5..9], false), SLCStationReport.new(@fields[10..14], false), SLCStationReport.new(@fields[15..19], false), SLCStationReport.new(@fields[20..24], false), SLCStationReport.new(@fields[25..29], false) ] end |