Method: OpenC3::Commands#packets
- Defined in:
- lib/openc3/packets/commands.rb
#packets(target_name) ⇒ Hash<packet_name=>Packet>
Returns Hash of the command packets for the given target name keyed by the packet name.
59 60 61 62 63 64 |
# File 'lib/openc3/packets/commands.rb', line 59 def packets(target_name) target_packets = @config.commands[target_name.to_s.upcase] raise "Command target '#{target_name.to_s.upcase}' does not exist" unless target_packets target_packets end |