Method: OpenC3::PacketParser.parse_command

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

.parse_command(parser, target_name, commands, warnings) ⇒ Object

Parameters:

  • parser (ConfigParser)

    Configuration parser

  • target_name (String)

    The name of the target to create the packet under. If the target name is 'SYSTEM' the keyword parameter will be used instead of this parameter.

  • commands (Hash)

    Hash of the currently defined commands

  • warnings (Array<String>)

    Any warning strings generated while parsing this command will be appened to this array



34
35
36
37
38
# File 'lib/openc3/packets/parsers/packet_parser.rb', line 34

def self.parse_command(parser, target_name, commands, warnings)
  parser = PacketParser.new(parser)
  parser.verify_parameters()
  parser.create_command(target_name, commands, warnings)
end