mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-04-09 00:13:59 +00:00
Added satellite system property (GPS/Glonass/Waas)
This commit is contained in:
parent
a8cb9c3607
commit
8f692a4aab
2 changed files with 46 additions and 3 deletions
|
|
@ -105,5 +105,45 @@ namespace NmeaParser.Nmea.Gps
|
|||
/// Signal-to-Noise ratio, 0-99 dB (-1 when not tracking)
|
||||
/// </summary>
|
||||
public int SignalToNoiseRatio { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Satellite system
|
||||
/// </summary>
|
||||
public SatelliteSystem System
|
||||
{
|
||||
get
|
||||
{
|
||||
if (PrnNumber >= 1 && PrnNumber <= 32)
|
||||
return SatelliteSystem.Gps;
|
||||
if (PrnNumber >= 33 && PrnNumber <= 64)
|
||||
return SatelliteSystem.Waas;
|
||||
if (PrnNumber >= 65 && PrnNumber <= 96)
|
||||
return SatelliteSystem.Glonass;
|
||||
return SatelliteSystem.Unknown;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Satellite system
|
||||
/// </summary>
|
||||
public enum SatelliteSystem
|
||||
{
|
||||
/// <summary>
|
||||
/// Unknown
|
||||
/// </summary>
|
||||
Unknown,
|
||||
/// <summary>
|
||||
/// GPS - Global Positioning System (NAVSTAR)
|
||||
/// </summary>
|
||||
Gps,
|
||||
/// <summary>
|
||||
/// WAAS - Wide Area Augmentation System
|
||||
/// </summary>
|
||||
Waas,
|
||||
/// <summary>
|
||||
/// GLONASS - Globalnaya navigatsionnaya sputnikovaya sistema
|
||||
/// </summary>
|
||||
Glonass
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue