Method: NMEAPlus::Message::AIS::VDM#full_dearmored_ais_payload

Defined in:
lib/nmea_plus/message/ais/vdm.rb,
lib/nmea_plus/message/ais/vdm.rb
more...

#full_dearmored_ais_payloadString (readonly)

a binary string (“0010101110110”) representing the dearmored payload

Returns:

  • (String)
[View source]

88
89
90
91
92
93
94
95
# File 'lib/nmea_plus/message/ais/vdm.rb', line 88

def full_dearmored_ais_payload
  data = full_armored_ais_payload
  out = ""
  # dearmor all but the last byte, then apply the fill bits to the last byte
  data[0..-2].each_char { |c| out << _dearmor6b(c) }
  out << _dearmor6b(data[-1], 6 - last_ais_fill_bits)
  out
end