Method: OpenC3::PacketParser.check_item_data_types

Defined in:
lib/openc3/packets/parsers/packet_parser.rb

.check_item_data_types(packet) ⇒ Object

Parameters:

  • packet (Packet)

    Packet to check all default and range items for appropriate data types. Only applicable to COMMAND packets.



60
61
62
63
64
65
66
67
68
# File 'lib/openc3/packets/parsers/packet_parser.rb', line 60

def self.check_item_data_types(packet)
  packet.sorted_items.each do |item|
    item.check_default_and_range_data_types()
  end
rescue
  # Add the target name and packet name to the error message so the user
  # can debug where the error occurred
  raise $!, "#{packet.target_name} #{packet.packet_name} #{$!}", $!.backtrace
end