
21. High-level API Reference
YRangeFinder
rangefinder
→
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
YRangeFinder
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
237
Summary of Contents for Yocto-RangeFinder
Page 1: ...Yocto RangeFinder User s guide...
Page 2: ......
Page 18: ...12 www yoctopuce com...
Page 26: ...20 www yoctopuce com...
Page 42: ...36 www yoctopuce com...
Page 70: ...gcc lyocto lm lpthread lusb 1 0 lstdc 10 Using Yocto RangeFinder with C 64 www yoctopuce com...
Page 90: ...84 www yoctopuce com...
Page 120: ...114 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 484: ...478 www yoctopuce com...
Page 488: ...482 www yoctopuce com...
Page 490: ...23 Characteristics 484 www yoctopuce com...
Page 491: ......
Page 492: ......