
productId
USB device identifier of the module, preprogrammed to 111 at the factory.
productRelease
Release number of the module hardware, preprogrammed at the factory.
firmwareRelease
Release version of the embedded firmware, changes each time the embedded software is updated.
persistentSettings
State of persistent module settings: loaded from flash memory, modified by the user or saved to flash
memory.
luminosity
Lighting strength of the informative leds (e.g. the Yocto-Led) contained in the module. It is an integer
value which varies between 0 (leds turned off) and 100 (maximum led intensity). The default value is
50. To change the strength of the module leds, or to turn them off completely, you only need to
change this value.
beacon
Activity of the localization beacon of the module.
upTime
Time elapsed since the last time the module was powered on.
usbCurrent
Current consumed by the module on the USB bus, in milli-amps.
rebootCountdown
Countdown to use for triggering a reboot of the module.
userVar
32bit integer variable available for user storage.
6.4. RangeFinder function interface
The Yoctopuce class YRangeFinder allows you to use and configure Yoctopuce range finder
sensors. It inherits from the YSensor class the core functions to read measurements, register
callback functions, access the autonomous datalogger. This class adds the ability to easily perform a
one-point linear calibration to compensate the effect of a glass or filter placed in front of the sensor.
logicalName
Character string containing the logical name of the range finder, initially empty. This attribute can be
modified at will by the user. Once initialized to an non-empty value, it can be used to access the
range finder directly. If two range finders with the same logical name are used in the same project,
there is no way to determine which one answers when one tries accessing by logical name. The
logical name is limited to 19 characters among
A
..
Z
,
a
..
z
,
0
..
9
,
_
, and
-
.
advertisedValue
Short character string summarizing the current state of the range finder, that is automatically
advertised up to the parent hub. For a range finder, the advertised value is the current value of the
range measured.
6. Programming, general concepts
www.yoctopuce.com
25
Содержание Yocto-RangeFinder
Страница 1: ...Yocto RangeFinder User s guide...
Страница 2: ......
Страница 18: ...12 www yoctopuce com...
Страница 26: ...20 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Страница 90: ...84 www yoctopuce com...
Страница 120: ...114 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...21 High level API Reference On failure throws an exception or returns a negative error code 152 www yoctopuce com...
Страница 484: ...478 www yoctopuce com...
Страница 488: ...482 www yoctopuce com...
Страница 490: ...23 Characteristics 484 www yoctopuce com...
Страница 491: ......
Страница 492: ......