Class: MAVLink::Log::TimedMessage

Inherits:
Message
  • Object
show all
Defined in:
lib/mavlink/log/messages.rb

Direct Known Subclasses

Attitude, GlobalPositionInt

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_payload) ⇒ TimedMessage

Returns a new instance of TimedMessage.



16
17
18
# File 'lib/mavlink/log/messages.rb', line 16

def initialize(raw_payload)
  @time_boot_ms = raw_payload[0..3].unpack('L<')[0]
end

Instance Attribute Details

#time_boot_msObject

Returns the value of attribute time_boot_ms.



14
15
16
# File 'lib/mavlink/log/messages.rb', line 14

def time_boot_ms
  @time_boot_ms
end