Method: MAVLink::Log::Entry#initialize

Defined in:
lib/mavlink/log/entry.rb

#initialize(raw_time, header, payload, raw_crc) ⇒ Entry

Returns a new instance of Entry.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/mavlink/log/entry.rb', line 8

def initialize(raw_time, header, payload, raw_crc)
  @time = to_time(raw_time)
  @header = header
  @payload = payload
  @crc = to_crc(raw_crc)

  if false && header.id==40
    puts raw_time.unpack('H*')
    puts payload.unpack("H*")
    puts raw_crc.unpack('H*')
  end
end