Class: NMEAPlus::Message::NMEA::RMB

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

Overview

RMB - Recommended Minimum Navigation Information

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

#active?Object (readonly)

Returns field 1 of the payload, formatted with the function #_av_boolean.

Returns:

  • field 1 of the payload, formatted with the function #_av_boolean



9
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 9

field_reader :active?, 1, :_av_boolean

#arrival_circle_entered?Object (readonly)

Returns field 13 of the payload, formatted with the function #_av_boolean.

Returns:

  • field 13 of the payload, formatted with the function #_av_boolean



32
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 32

field_reader :arrival_circle_entered?, 13, :_av_boolean

#bearing_to_destination_degrees_trueObject (readonly)

Returns field 11 of the payload, formatted with the function #_float.

Returns:

  • field 11 of the payload, formatted with the function #_float



30
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 30

field_reader :bearing_to_destination_degrees_true, 11, :_float

#cross_track_error_nautical_milesObject (readonly)

Returns field 2 of the payload, formatted with the function #_float.

Returns:

  • field 2 of the payload, formatted with the function #_float



10
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 10

field_reader :cross_track_error_nautical_miles, 2, :_float

#destination_closing_velocity_knotsObject (readonly)

Returns field 12 of the payload, formatted with the function #_float.

Returns:

  • field 12 of the payload, formatted with the function #_float



31
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 31

field_reader :destination_closing_velocity_knots, 12, :_float

#direction_to_steerObject (readonly)

Returns field 3 of the payload, formatted with the function #_string.

Returns:

  • field 3 of the payload, formatted with the function #_string



11
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 11

field_reader :direction_to_steer, 3, :_string

#faa_modeObject (readonly)

Returns field 14 of the payload, formatted with the function #_string.

Returns:

  • field 14 of the payload, formatted with the function #_string



33
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 33

field_reader :faa_mode, 14, :_string

#range_to_destination_nautical_milesObject (readonly)

Returns field 10 of the payload, formatted with the function #_float.

Returns:

  • field 10 of the payload, formatted with the function #_float



29
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 29

field_reader :range_to_destination_nautical_miles, 10, :_float

#waypoint_fromObject (readonly)

Returns field 5 of the payload, formatted with the function #_integer.

Returns:

  • field 5 of the payload, formatted with the function #_integer



13
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 13

field_reader :waypoint_from, 5, :_integer

#waypoint_latitudeFloat (readonly)

Waypoint latitude in degrees

Returns:

  • (Float)


18
19
20
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 18

def waypoint_latitude
  self.class.degrees_minutes_to_decimal(@fields[6], @fields[7])
end

#waypoint_longitudeFloat (readonly)

Waypoint longitude in degrees

Returns:

  • (Float)


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

def waypoint_longitude
  self.class.degrees_minutes_to_decimal(@fields[8], @fields[9])
end

#waypoint_toObject (readonly)

Returns field 4 of the payload, formatted with the function #_integer.

Returns:

  • field 4 of the payload, formatted with the function #_integer



12
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 12

field_reader :waypoint_to, 4, :_integer