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

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

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

#_degrees_minutes_to_decimal, #_float, #_hex_to_integer, #_highest_contiguous_index, #_integer, #_interval_hms, #_nsew_signed_float, #_string, #_utc_date_time, #_utctime_hms, #add_message_part, #all_checksums_ok?, #all_messages_received?, #calculated_checksum, #checksum_ok?, field_reader, #highest_contiguous_index

Instance Attribute Details

#active?Object (readonly)

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

Returns:



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

field_reader :active?, 1, :_av_boolean

#arrival_circle_entered?Object (readonly)

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

Returns:



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

field_reader :arrival_circle_entered?, 13, :_av_boolean

#bearing_to_destination_degrees_trueObject (readonly)

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

Returns:

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



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

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 Base#_float.

Returns:

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



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

field_reader :cross_track_error_nautical_miles, 2, :_float

#destination_closing_velocity_knotsObject (readonly)

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

Returns:

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



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

field_reader :destination_closing_velocity_knots, 12, :_float

#direction_to_steerObject (readonly)

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

Returns:

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



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

field_reader :direction_to_steer, 3, :_string

#faa_modeObject (readonly)

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

Returns:

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



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

field_reader :faa_mode, 14, :_string

#range_to_destination_nautical_milesObject (readonly)

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

Returns:

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



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

field_reader :range_to_destination_nautical_miles, 10, :_float

#waypoint_fromObject (readonly)

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

Returns:

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



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

field_reader :waypoint_from, 5, :_integer

#waypoint_latitudeFloat (readonly)

Returns:

  • (Float)


16
17
18
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 16

def waypoint_latitude
  _degrees_minutes_to_decimal(@fields[6], @fields[7])
end

#waypoint_longitudeFloat (readonly)

Returns:

  • (Float)


22
23
24
# File 'lib/nmea_plus/message/nmea/rmb.rb', line 22

def waypoint_longitude
  _degrees_minutes_to_decimal(@fields[8], @fields[9])
end

#waypoint_toObject (readonly)

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

Returns:

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



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

field_reader :waypoint_to, 4, :_integer