Method: OpenC3::Commands#format
- Defined in:
- lib/openc3/packets/commands.rb
#format(packet, ignored_parameters = []) ⇒ Object
Formatted version of a command
187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/openc3/packets/commands.rb', line 187 def format(packet, ignored_parameters = []) if packet.raw items = packet.read_all(:RAW) raw = true else items = packet.read_all(:FORMATTED) raw = false end items.delete_if { |item_name, item_value| ignored_parameters.include?(item_name) } return build_cmd_output_string(packet.target_name, packet.packet_name, items, raw) end |