![Yoctopuce Yocto-GPS User Manual Download Page 387](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557387.webp)
20. High-level API Reference
20.6. Altitude function interface
The Yoctopuce class YAltitude allows you to read and configure Yoctopuce altitude sensors. It inherits
from the YSensor class the core functions to read measurements, to register callback functions, to
access the autonomous datalogger. This class adds the ability to configure the barometric pressure
adjusted to sea level (QNH) for barometric sensors.
In order to use the functions described here, you should include:
js
<script type='text/javascript' src='yocto_altitude.js'></script>
nodejs
var yoctolib = require('yoctolib');
var YAltitude = yoctolib.YAltitude;
cpp
#include "yocto_altitude.h"
m
#import "yocto_altitude.h"
pas
uses yocto_altitude;
vb
yocto_altitude.vb
cs
yocto_altitude.cs
java
import com.yoctopuce.YoctoAPI.YAltitude;
uwp
import com.yoctopuce.YoctoAPI.YAltitude;
py
from yocto_altitude import *
php
require_once('yocto_altitude.php');
es
in HTML: <script src="../../lib/yocto_altitude.js"></script>
in node.js: require('yoctolib-es2017/yocto_altitude.js');
Global functions
func
)
Retrieves an altimeter for a given identifier.
yctx
,
func
)
Retrieves an altimeter for a given identifier in a YAPI context.
Starts the enumeration of altimeters currently accessible.
yctx
)
Starts the enumeration of altimeters currently accessible.
YAltitude
methods
rawValues
,
refValues
)
Configures error correction data points, in particular to compensate for a possible perturbation of the measure
caused by an enclosure.
Invalidates the cache.
Returns a short text that describes unambiguously the instance of the altimeter in the form
TYPE(NAME)=SERIAL.FUNCTIONID
.
Returns the current value of the altimeter (no more than 6 characters).
Returns the uncalibrated, unrounded raw value returned by the sensor, in meters, as a floating point number.
Returns the current value of the altitude, in meters, as a floating point number.
Returns the error message of the latest error with the altimeter.
www.yoctopuce.com
381
Summary of Contents for Yocto-GPS
Page 1: ...Yocto GPS User s guide...
Page 2: ......
Page 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Page 10: ...4 www yoctopuce com...
Page 14: ...8 www yoctopuce com...
Page 18: ...12 www yoctopuce com...
Page 22: ...16 www yoctopuce com...
Page 38: ...32 www yoctopuce com...
Page 42: ...36 www yoctopuce com...
Page 54: ...48 www yoctopuce com...
Page 72: ...66 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 122: ...116 www yoctopuce com...
Page 132: ...126 www yoctopuce com...
Page 564: ...22 Characteristics 558 www yoctopuce com...
Page 565: ......
Page 566: ......