Records all the relevant details of a GPS position report, plus some utility functions for operating on them.
More...
|
uint8_t | magic |
| Magic number and version of this report format == GPSNET_MAGIC_VERSION_1.
|
|
uint8_t | id [GPSNET_REPORT_ID_LEN] |
| Unique ID of the node originating the report.
|
|
uint32_t | date |
| Current date as an integer (yymmdd)
|
|
uint32_t | time |
| Current time as an integer (hhmmss)
|
|
int32_t | latitude |
| Current latitude in 100000ths of a degree.
|
|
int32_t | longitude |
| Current longitude in 100000ths of a degree.
|
|
int16_t | altitude |
| Current altitude in m.
|
|
uint16_t | speed |
| Current speed in knot.
|
|
uint16_t | course |
| Current course in degrees.
|
|
uint8_t | flags |
| GPSnet internal flags (not used at present)
|
|
uint8_t | status |
| External application specific status flags.
|
|
uint8_t | hops |
| Num of radio hops from originator, 0 at originator.
|
|
Records all the relevant details of a GPS position report, plus some utility functions for operating on them.
The id member contains the node ID of the node that originated this report. Node IDs are expected to be unique across the network.
- Examples:
- gpsnet.ino.
boolean GPSReport::isIdenticalTo |
( |
GPSReport * |
that | ) |
|
Tests whether 2 GPSReports are identical in all respects
- Parameters
-
[in] | that | Pointer to the other report to test against |
- Returns
- true if all members match exactly
References altitude, course, date, flags, hasId(), hops, id, latitude, longitude, speed, status, and time.