
21. High-level API Reference
YLightSensor
lightsensor
→
calibrateFromPoints()
Configures error correction data points, in particular to compensate for a possible perturbation of the
measure caused by an enclosure.
js
function calibrateFromPoints(
rawValues
,
refValues
)
cpp
int calibrateFromPoints( vector<double>
rawValues
,
vector<double>
refValues
)
m
-(int) calibrateFromPoints : (NSMutableArray*)
rawValues
: (NSMutableArray*)
refValues
pas
function calibrateFromPoints(
rawValues
: TDoubleArray,
refValues
: TDoubleArray): LongInt
vb
procedure calibrateFromPoints( )
cs
int calibrateFromPoints( List<double>
rawValues
,
List<double>
refValues
)
java
int calibrateFromPoints( ArrayList<Double>
rawValues
,
ArrayList<Double>
refValues
)
uwp
async Task<int> calibrateFromPoints( List<double>
rawValues
,
List<double>
refValues
)
py
def calibrateFromPoints(
rawValues
,
refValues
)
php
function calibrateFromPoints(
$rawValues
,
$refValues
)
es
function calibrateFromPoints(
rawValues
,
refValues
)
cmd
YLightSensor
target
calibrateFromPoints
rawValues
refValues
It is possible to configure up to five correction points. Correction points must be provided in ascending
order, and be in the range of the sensor. The device will automatically perform a linear interpolation of
the error correction between specified points. Remember to call the
saveToFlash()
method of the
module if the modification must be kept.
For more information on advanced capabilities to refine the calibration of sensors, please contact
[email protected].
Parameters :
rawValues
array of floating point numbers, corresponding to the raw values returned by the sensor for the
correction points.
refValues
array of floating point numbers, corresponding to the corrected values for the correction points.
Returns :
YAPI_SUCCESS
if the call succeeds.
On failure, throws an exception or returns a negative error code.
www.yoctopuce.com
365
Содержание 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: ......