![Yoctopuce Yocto-GPS Скачать руководство пользователя страница 235](http://html1.mh-extra.com/html/yoctopuce/yocto-gps/yocto-gps_user-manual_3415557235.webp)
20. High-level API Reference
20.3. GPS function interface
The Gps function allows you to extract positionning data from the GPS device. This class can provides
complete positionning information: However, if you whish to define callbacks on position changes, you
should use the YLatitude et YLongitude classes.
In order to use the functions described here, you should include:
js
<script type='text/javascript' src='yocto_gps.js'></script>
nodejs
var yoctolib = require('yoctolib');
var YGps = yoctolib.YGps;
cpp
#include "yocto_gps.h"
m
#import "yocto_gps.h"
pas
uses yocto_gps;
vb
yocto_gps.vb
cs
yocto_gps.cs
java
import com.yoctopuce.YoctoAPI.YGps;
uwp
import com.yoctopuce.YoctoAPI.YGps;
py
from yocto_gps import *
php
require_once('yocto_gps.php');
es
in HTML: <script src="../../lib/yocto_gps.js"></script>
in node.js: require('yoctolib-es2017/yocto_gps.js');
Global functions
func
)
Retrieves a GPS for a given identifier.
yctx
,
func
)
Retrieves a GPS for a given identifier in a YAPI context.
Starts the enumeration of GPS currently accessible.
yctx
)
Starts the enumeration of GPS currently accessible.
YGps
methods
Invalidates the cache.
Returns a short text that describes unambiguously the instance of the GPS in the form
TYPE(NAME)=SERIAL.FUNCTIONID
.
Returns the current value of the GPS (no more than 6 characters).
Returns the current altitude.
Returns the representation system used for positioning data.
Returns the current time in the form "YYYY/MM/DD hh:mm:ss".
Returns the current horizontal dilution of precision, the smaller that number is, the better .
Returns the current move bearing in degrees, zero is the true (geographic) north.
www.yoctopuce.com
229
Содержание Yocto-GPS
Страница 1: ...Yocto GPS User s guide...
Страница 2: ......
Страница 6: ...22 Characteristics 557 Blueprint 559 Index 561...
Страница 10: ...4 www yoctopuce com...
Страница 14: ...8 www yoctopuce com...
Страница 18: ...12 www yoctopuce com...
Страница 22: ...16 www yoctopuce com...
Страница 38: ...32 www yoctopuce com...
Страница 42: ...36 www yoctopuce com...
Страница 54: ...48 www yoctopuce com...
Страница 72: ...66 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 122: ...116 www yoctopuce com...
Страница 132: ...126 www yoctopuce com...
Страница 159: ...20 High level API Reference On failure throws an exception or returns a negative error code www yoctopuce com 153...
Страница 564: ...22 Characteristics 558 www yoctopuce com...
Страница 565: ......
Страница 566: ......