DistanceSensor class
Distance sensor information for an onboard rangefinder.
DISTANCE_SENSOR
- Implemented types
Constructors
-
DistanceSensor({required uint32_t timeBootMs, required uint16_t minDistance, required uint16_t maxDistance, required uint16_t currentDistance, required MavDistanceSensor type, required uint8_t id, required MavSensorOrientation orientation, required uint8_t covariance, required float horizontalFov, required float verticalFov, required List<
float> quaternion, required uint8_t signalQuality}) - DistanceSensor.parse(ByteData data_)
-
factory
Properties
- covariance → uint8_t
-
Measurement variance. Max standard deviation is 6cm. UINT8_MAX if unknown.
final
- currentDistance → uint16_t
-
Current distance reading
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalFov → float
-
Horizontal Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0.
final
- id → uint8_t
-
Onboard ID of the sensor
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
- orientation → MavSensorOrientation
-
Direction the sensor faces. downward-facing: ROTATION_PITCH_270, upward-facing: ROTATION_PITCH_90, backward-facing: ROTATION_PITCH_180, forward-facing: ROTATION_NONE, left-facing: ROTATION_YAW_90, right-facing: ROTATION_YAW_270
final
-
quaternion
→ List<
float> -
Quaternion of the sensor orientation in vehicle body frame (w, x, y, z order, zero-rotation is 1, 0, 0, 0). Zero-rotation is along the vehicle body x-axis. This field is required if the orientation is set to MAV_SENSOR_ROTATION_CUSTOM. Set it to 0 if invalid."
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signalQuality → uint8_t
-
Signal quality of the sensor. Specific to each sensor type, representing the relation of the signal strength with the target reflectivity, distance, size or aspect, but normalised as a percentage. 0 = unknown/unset signal quality, 1 = invalid signal, 100 = perfect signal.
final
- timeBootMs → uint32_t
-
Timestamp (time since system boot).
final
- type → MavDistanceSensor
-
Type of distance sensor.
final
- verticalFov → float
-
Vertical Field of View (angle) where the distance measurement is valid and the field of view is known. Otherwise this is set to 0.
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