Event class

Event message. Each new event from a particular component gets a new sequence number. The same message might be sent multiple times if (re-)requested. Most events are broadcast, some can be specific to a target component (as receivers keep track of the sequence for missed events, all events need to be broadcast. Thus we use destination_component instead of target_component).

EVENT

Implemented types

Constructors

Event({required uint32_t id, required uint32_t eventTimeBootMs, required uint16_t sequence, required uint8_t destinationComponent, required uint8_t destinationSystem, required uint8_t logLevels, required List<int8_t> arguments})
Event.parse(ByteData data_)
factory

Properties

arguments List<int8_t>
Arguments (depend on event ID).
final
destinationComponent uint8_t
Component ID
final
destinationSystem uint8_t
System ID
final
eventTimeBootMs uint32_t
Timestamp (time since system boot when the event happened).
final
hashCode int
The hash code for this object.
no setterinherited
id uint32_t
Event ID (as defined in the component metadata)
final
logLevels uint8_t
Log levels: 4 bits MSB: internal (for logging purposes), 4 bits LSB: external. Levels: Emergency = 0, Alert = 1, Critical = 2, Error = 3, Warning = 4, Notice = 5, Info = 6, Debug = 7, Protocol = 8, Disabled = 9
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence uint16_t
Sequence number.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteData
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mavlinkEncodedLength → const int