Class: MAVLink::Log::Message
- Inherits:
-
Object
- Object
- MAVLink::Log::Message
- Defined in:
- lib/mavlink/log/message.rb
Direct Known Subclasses
MAVLink::Log::Messages::HeartBeat, MAVLink::Log::Messages::MissionCurrent, MAVLink::Log::Messages::MissionItem, MAVLink::Log::Messages::MissionRequest, MAVLink::Log::Messages::NavControllerOutput, MAVLink::Log::Messages::ParamRequestList, MAVLink::Log::Messages::ParamValue, MAVLink::Log::Messages::RequestDataStream, MAVLink::Log::Messages::StatusText, MAVLink::Log::Messages::SysStatus, MAVLink::Log::Messages::VfrHud, TimedMessageMicro, TimedMessageMilli
Instance Method Summary collapse
- #crc ⇒ Object
- #id ⇒ Object
-
#initialize(entry) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(entry) ⇒ Message
Returns a new instance of Message.
5 6 7 |
# File 'lib/mavlink/log/message.rb', line 5 def initialize(entry) @entry = entry end |
Instance Method Details
#crc ⇒ Object
13 14 15 |
# File 'lib/mavlink/log/message.rb', line 13 def crc @entry.crc end |
#id ⇒ Object
9 10 11 |
# File 'lib/mavlink/log/message.rb', line 9 def id @entry.header.id end |