Method: OpenC3::System.dynamic_update
- Defined in:
- lib/openc3/system/system.rb
.dynamic_update(dynamic_packets, cmd_or_tlm = :TELEMETRY, affect_ids: false) ⇒ Object
Dynamically add packets to the system instance
148 149 150 151 152 153 154 155 156 |
# File 'lib/openc3/system/system.rb', line 148 def self.dynamic_update(dynamic_packets, cmd_or_tlm = :TELEMETRY, affect_ids: false) dynamic_packets.each do |packet| if cmd_or_tlm == :TELEMETRY @@instance.telemetry.dynamic_add_packet(packet, affect_ids: affect_ids) else @@instance.commands.dynamic_add_packet(packet, affect_ids: affect_ids) end end end |