Method: OpenC3::Telemetry#packets

Defined in:
lib/openc3/packets/telemetry.rb,
ext/openc3/ext/telemetry/telemetry.c

#packets(target_name) ⇒ Hash<packet_name=>Packet>

Returns Hash of the telemetry packets for the given target name keyed by the packet name.

Parameters:

  • The target name

Returns:

  • Hash of the telemetry packets for the given target name keyed by the packet name



64
65
66
67
68
69
70
# File 'lib/openc3/packets/telemetry.rb', line 64

def packets(target_name)
  upcase_target_name = target_name.to_s.upcase
  target_packets = @config.telemetry[upcase_target_name]
  raise "Telemetry target '#{upcase_target_name}' does not exist" unless target_packets

  target_packets
end