Method: OpenC3::PreidentifiedProtocol#read_packet

Defined in:
lib/openc3/interfaces/protocols/preidentified_protocol.rb

#read_packet(packet) ⇒ Object



46
47
48
49
50
51
52
53
54
55
# File 'lib/openc3/interfaces/protocols/preidentified_protocol.rb', line 46

def read_packet(packet)
  packet.received_time = @read_received_time
  packet.target_name = @read_target_name
  packet.packet_name = @read_packet_name
  if @mode == 4 # COSMOS4.3+ Protocol
    packet.stored = @read_stored
    packet.extra = @read_extra
  end
  return packet
end