Class: OpenC3::XtceConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/openc3/packets/parsers/xtce_converter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_target_nameObject

Returns the value of attribute current_target_name.



29
30
31
# File 'lib/openc3/packets/parsers/xtce_converter.rb', line 29

def current_target_name
  @current_target_name
end

Class Method Details

.convert(commands, telemetry, output_dir) ⇒ Object

Output a previously parsed definition file into the XTCE format

Parameters:

  • commands (Hash<String=>Packet>)

    Hash of all the command packets keyed by the packet name.

  • telemetry (Hash<String=>Packet>)

    Hash of all the telemetry packets keyed by the packet name. that were created while parsing the configuration

  • output_dir (String)

    The name of the output directory to generate the XTCE files. A file is generated for each target.



40
41
42
# File 'lib/openc3/packets/parsers/xtce_converter.rb', line 40

def self.convert(commands, telemetry, output_dir)
  XtceConverter.new(commands, telemetry, output_dir)
end