Method: OpenC3::PacketItemParser.parse

Defined in:
lib/openc3/packets/parsers/packet_item_parser.rb

.parse(parser, packet, cmd_or_tlm, warnings) ⇒ Object

Parameters:

  • Configuration parser

  • The packet the item should be added to

  • Whether this is a command or telemetry packet

  • Array of warning strings from PacketConfig



36
37
38
39
40
# File 'lib/openc3/packets/parsers/packet_item_parser.rb', line 36

def self.parse(parser, packet, cmd_or_tlm, warnings)
  parser = PacketItemParser.new(parser, warnings)
  parser.verify_parameters(cmd_or_tlm)
  parser.create_packet_item(packet, cmd_or_tlm)
end