SemAlmanacReadFrom Method (TextReader, Int32) |
Reads a SEM almanac from the specified reader.
Namespace:
AGI.Foundation.Navigation.DataReaders
Assembly:
AGI.Foundation.Navigation (in AGI.Foundation.Navigation.dll) Version: 25.2.423.0 (25.2.423.0)
Syntaxpublic static SemAlmanac ReadFrom(
TextReader reader,
int rolloverCount
)
Public Shared Function ReadFrom (
reader As TextReader,
rolloverCount As Integer
) As SemAlmanac
public:
static SemAlmanac^ ReadFrom(
TextReader^ reader,
int rolloverCount
)
static member ReadFrom :
reader : TextReader *
rolloverCount : int -> SemAlmanac
Parameters
- reader
- Type: System.IOTextReader
The reader from which to read the almanac. - rolloverCount
- Type: SystemInt32
The number of times the GPS week counter had rolled over when this almanac was created.
See below for more information.
Return Value
Type:
SemAlmanacThe almanac read from the stream.
Exceptions| Exception | Condition |
|---|
| ArgumentNullException |
Thrown when reader is .
|
| InvalidDataException |
Thrown when the SEM almanac data has an invalid format.
|
Remarks
The following list represents the rollover dates for the GPS week parameter.
On or after the date listed below, you will need to use the specified rollover count.
| Date | Rollover Count |
|---|
| January 6, 1980 | 0 |
| August 22, 1999 | 1 |
| April 7, 2019 | 2 |
| November 21, 2038 | 3 |
| July 7, 2058 | 4 |
To compute the rollover count for a given date, construct a
GlobalPositioningSystemDate
and use the value of
RolloverCount.
See Also