GNSS positioning data. More...
#include <GNSS.h>

Public Member Functions | |
| int | isSatelliteType (unsigned long index, SpSatelliteType sattype) |
| Check if the specified satellite is GPS. More... | |
| int | isSatelliteTypeGps (unsigned long index) |
| [Obsolete] Check if the specified satellite is GPS More... | |
| int | isSatelliteTypeGlonass (unsigned long index) |
| [Obsolete] Check if the specified satellite is Glonass More... | |
| SpSatelliteType | getSatelliteType (unsigned long index) |
| Get satellite type. More... | |
| unsigned char | getSatelliteId (unsigned long index) |
| Get satellite ID(SVID) More... | |
| unsigned char | getSatelliteElevation (unsigned long index) |
| Get satellite elevation. More... | |
| signed short | getSatelliteAzimuth (unsigned long index) |
| Get satellite azimuth. More... | |
| float | getSatelliteSignalLevel (unsigned long index) |
| Get satellite signal level(C/N) More... | |
Public Attributes | |
| SpGnssTime | time |
| unsigned char | type |
| unsigned char | numSatellites |
| unsigned char | posFixMode |
| unsigned char | posDataExist |
| unsigned char | numSatellitesCalcPos |
| unsigned short | satelliteType |
| unsigned short | posSatelliteType |
| double | latitude |
| double | longitude |
| double | altitude |
| float | velocity |
| float | direction |
| float | pdop |
| float | hdop |
| float | vdop |
| float | tdop |
| SpSatellite | satellite [24] |
GNSS positioning data.
Store the positioning result in this object.
| int SpNavData::isSatelliteType | ( | unsigned long | index, |
| SpSatelliteType | sattype | ||
| ) |
Check if the specified satellite is GPS.
If the satellite of the element of array index is GPS, 1 is returned.
| [in] | index | Array number of the satellite array |
| [in] | sattype | Type of satellite system |
|
inline |
[Obsolete] Check if the specified satellite is GPS
This function is obsolete. Replace with isSatelliteType.
|
inline |
[Obsolete] Check if the specified satellite is Glonass
This function is obsolete. Replace with isSatelliteType.
| SpSatelliteType SpNavData::getSatelliteType | ( | unsigned long | index | ) |
Get satellite type.
Specify the element number of the satellite and return the type of satellite system.
| [in] | index | Array number of the satellite array |
| unsigned char SpNavData::getSatelliteId | ( | unsigned long | index | ) |
Get satellite ID(SVID)
Specify the element number of the satellite and return the SatelliteId value stored in the array.
| [in] | index | Array number of the satellite array |
| unsigned char SpNavData::getSatelliteElevation | ( | unsigned long | index | ) |
Get satellite elevation.
Specify the element number of the satellite and return the SatelliteElevation value stored in the array.
| [in] | index | Array number of the satellite array |
| signed short SpNavData::getSatelliteAzimuth | ( | unsigned long | index | ) |
Get satellite azimuth.
Specify the element number of the satellite and return the SatelliteAzimuth value stored in the array.
| [in] | index | Array number of the satellite array |
| float SpNavData::getSatelliteSignalLevel | ( | unsigned long | index | ) |
Get satellite signal level(C/N)
Specify the element number of the satellite and return the SignalLevel value stored in the array.
| [in] | index | Array number of the satellite array |
| SpGnssTime SpNavData::time |
Time when this position data was updated
| unsigned char SpNavData::type |
Position type; 0:Invalid, 1:GNSS, 2:reserv, 3:user set, 4:previous
| unsigned char SpNavData::numSatellites |
Number of visible satellites
| unsigned char SpNavData::posFixMode |
FIX mode, 1:Invalid, 2:2D FIX, 3:3D FIX
| unsigned char SpNavData::posDataExist |
Is position data existed, 0:none, 1:exist
| unsigned char SpNavData::numSatellitesCalcPos |
Number of satellites to calculate the position
| unsigned short SpNavData::satelliteType |
using sv system, bit field; bit0:GPS, bit1:GLONASS
| unsigned short SpNavData::posSatelliteType |
using sv system, bit field; bit0:GPS, bit1:GLONASS
| double SpNavData::latitude |
Latitude [degree]
| double SpNavData::longitude |
Longitude [degree]
| double SpNavData::altitude |
Altitude [meter]
| float SpNavData::velocity |
Velocity [m/s]
| float SpNavData::direction |
Direction [degree]
| float SpNavData::pdop |
Position DOP [-]
| float SpNavData::hdop |
Horizontal DOP [-]
| float SpNavData::vdop |
Vertical DOP [-]
| float SpNavData::tdop |
Time DOP [-]
| SpSatellite SpNavData::satellite[24] |
satellite data array