GravioDistance

Description

The Gravio Distance component allows you to retrieve distance measurements from the Gravio Laser Distance sensors.

To use this component you must have paired the Gravio Laser Distance sensor beforehand.

If the Device ID property is empty, the command will be sent to all connected Gravio Distance.

Output payloadDescription
cv.PayloadOutputs an array of measured distances

Component properties

Property nameDescription
Device IDDevice ID for which the distance is to be measured, if none is set then the distance is measured for all Gravio Distances, if more than one Gravio Distance is used then the device ID can be comma-separated

Execution errors

Error codeErrorDescriptionCountermeasure
ERR--10low powerinsufficient currentcheck that the USB cable between the power supply and the sensor is correctly connected
ERR--14calculation errorexecution errorplease run again
ERR--15weak signalWeak signalPlease do not move the device and remove any obstructions.
ERR--16unstable laser transitionlaser is unstablehold device and target object still
ERR--18ambient light too strongambient light is too strongplease reduce ambient light
ERR--26out of display rangeplease try again

About the error that occurs when bound to a layer

Note: When a Distance sensor that is bound to a device layer and enabled is specified and used with the Gravio Distance component, the following error will occur:

ERROR 400 action: "GravioLaser": failed to execute: component: GravioDistance: device is being used

This is because the Distance sensor that is bound and enabled in the layer is set to send distance data every 5 seconds, and if the Gravio Distance component is executed when triggered by a trigger, the processes are colliding.

Distance sensors that are bound to a layer and enabled cannot be used in a Gravio Distance component, therefore they should only be used in one of the processes at a time.