OpticalFlow class

Optical flow from a flow sensor (e.g. optical mouse sensor)

OPTICAL_FLOW

Implemented types

Constructors

OpticalFlow({required uint64_t timeUsec, required float flowCompMX, required float flowCompMY, required float groundDistance, required int16_t flowX, required int16_t flowY, required uint8_t sensorId, required uint8_t quality, required float flowRateX, required float flowRateY})
OpticalFlow.parse(ByteData data_)
factory

Properties

flowCompMX float
Flow in x-sensor direction, angular-speed compensated
final
flowCompMY float
Flow in y-sensor direction, angular-speed compensated
final
flowRateX float
Flow rate about X axis
final
flowRateY float
Flow rate about Y axis
final
flowX int16_t
Flow in x-sensor direction
final
flowY int16_t
Flow in y-sensor direction
final
groundDistance float
Ground distance. Positive value: distance known. Negative value: Unknown distance
final
hashCode int
The hash code for this object.
no setterinherited
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
quality uint8_t
Optical flow quality / confidence. 0: bad, 255: maximum quality
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorId uint8_t
Sensor ID
final
timeUsec uint64_t
Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the 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