Collision class

Information about a potential collision

COLLISION

Implemented types

Constructors

Collision({required uint32_t id, required float timeToMinimumDelta, required float altitudeMinimumDelta, required float horizontalMinimumDelta, required MavCollisionSrc src, required MavCollisionAction action, required MavCollisionThreatLevel threatLevel})
Collision.parse(ByteData data_)
factory

Properties

action MavCollisionAction
Action that is being taken to avoid this collision
final
altitudeMinimumDelta float
Closest vertical distance between vehicle and object
final
hashCode int
The hash code for this object.
no setterinherited
horizontalMinimumDelta float
Closest horizontal distance between vehicle and object
final
id uint32_t
Unique identifier, domain based on src field
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
src MavCollisionSrc
Collision data source
final
threatLevel MavCollisionThreatLevel
How concerned the aircraft is about this collision
final
timeToMinimumDelta float
Estimated time until collision occurs
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