Class: NMEAPlus::Message::AIS::VDMPayload::VDMMsg6d1f5

Inherits:
VDMMsg6DynamicPayload show all
Defined in:
lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb

Overview

Type 6: Binary Addressed Message Subtype: IFM 5: Application acknowledgement to an addressed binary message

Instance Attribute Summary collapse

Attributes inherited from Payload

#fill_bits, #payload_bitstring

Method Summary

Methods inherited from Payload

#_2b_data_string, #_6b_ascii, #_6b_boolean, #_6b_integer, #_6b_integer_scaled, #_6b_integer_scaled_shifted, #_6b_negated_boolean, #_6b_string, #_6b_string_nullterminated, #_6b_unsigned_integer, #_6b_unsigned_integer_scaled, #_6b_unsigned_integer_scaled_shifted, #_8b_data_string, #_access, #_bit_slices, #_get_date_mdhm, #_object_by_name, #initialize, payload_reader

Constructor Details

This class inherits a constructor from NMEAPlus::Message::AIS::VDMPayload::Payload

Instance Attribute Details

#ai_available?Object (readonly)

Returns The field defined by the 1 bits starting at payload bit 115, formatted with the function Payload#_b(, , ).

Returns:

  • The field defined by the 1 bits starting at payload bit 115, formatted with the function Payload#_b(, , )



13
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 13

payload_reader :ai_available?, 115, 1, :_b

#ai_responseObject (readonly)

Returns The field defined by the 3 bits starting at payload bit 116, formatted with the function Payload#_e(, , ).

Returns:

  • The field defined by the 3 bits starting at payload bit 116, formatted with the function Payload#_e(, , )



14
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 14

payload_reader :ai_response, 116, 3, :_e

#ai_response_descriptionString (readonly)

The AI response description

Returns:

  • (String)

    The description of the AI response



19
20
21
22
23
24
25
26
27
28
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 19

def ai_response_description
  case ai_response
  when 0 then "Unable to respond"
  when 1 then "Reception acknowledged"
  when 2 then "Response to follow"
  when 3 then "Able to respond but currently inhibited"
  else
    "Reserved for future use"
  end
end

#received_fm_dacObject (readonly)

Returns The field defined by the 10 bits starting at payload bit 88, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 10 bits starting at payload bit 88, formatted with the function Payload#_u(, , )



10
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 10

payload_reader :received_fm_dac, 88, 10, :_u

#received_fm_fidObject (readonly)

Returns The field defined by the 6 bits starting at payload bit 98, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 6 bits starting at payload bit 98, formatted with the function Payload#_u(, , )



11
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 11

payload_reader :received_fm_fid, 98, 6, :_u

#sequence_numberObject (readonly)

Returns The field defined by the 11 bits starting at payload bit 104, formatted with the function Payload#_u(, , ).

Returns:

  • The field defined by the 11 bits starting at payload bit 104, formatted with the function Payload#_u(, , )



12
# File 'lib/nmea_plus/message/ais/vdm_payload/vdm_msg6d1f5.rb', line 12

payload_reader :sequence_number, 104, 11, :_u