ObstacleDistance class

Obstacle distances in front of the sensor, starting from the left in increment degrees to the right

OBSTACLE_DISTANCE

Implemented types

Constructors

ObstacleDistance({required uint64_t timeUsec, required List<int16_t> distances, required uint16_t minDistance, required uint16_t maxDistance, required MavDistanceSensor sensorType, required uint8_t increment, required float incrementF, required float angleOffset, required MavFrame frame})
ObstacleDistance.parse(ByteData data_)
factory

Properties

angleOffset float
Relative angle offset of the 0-index element in the distances array. Value of 0 corresponds to forward. Positive is clockwise direction, negative is counter-clockwise.
final
distances List<int16_t>
Distance of obstacles around the vehicle with index 0 corresponding to north + angle_offset, unless otherwise specified in the frame. A value of 0 is valid and means that the obstacle is practically touching the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
final
frame MavFrame
Coordinate frame of reference for the yaw rotation and offset of the sensor data. Defaults to MAV_FRAME_GLOBAL, which is north aligned. For body-mounted sensors use MAV_FRAME_BODY_FRD, which is vehicle front aligned.
final
hashCode int
The hash code for this object.
no setterinherited
increment uint8_t
Angular width in degrees of each array element. Increment direction is clockwise. This field is ignored if increment_f is non-zero.
final
incrementF float
Angular width in degrees of each array element as a float. If non-zero then this value is used instead of the uint8_t increment field. Positive is clockwise direction, negative is counter-clockwise.
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
maxDistance uint16_t
Maximum distance the sensor can measure.
final
minDistance uint16_t
Minimum distance the sensor can measure.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensorType MavDistanceSensor
Class id of the distance sensor type.
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