Garmin GPS16 GPS Receiver User Manual


 
190-00228-20 GPS 16/17 Technical Specifications Rev. C
Page 26
The status bit field represents a set of booleans described below:
Bit Meaning when bit is one (1)
0 The unit has ephemeris data for the specified satellite.
1 The unit has a differential correction for the specified satellite.
2 The unit is using this satellite in the solution.
This pattern is repeated for all 12 channels for a total of 12 X 7 bytes = 84 (0x54) bytes :
typedef struct
{
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
cpo_sat_data
} cpo_all_sat_data
The RS-232 Packet for the Satellite Record looks like:
- 0x10 (DLE is first byte)
- 0x72 (Record ID – single byte)
- 0x54 (Number of data bytes – single byte)
- cpo_all_sat_data
- 0x## (2’s complement of the arithmetic sum of the bytes between the delimiters)
- 0x10 (DLE)
- 0x03 (ETX is last byte)
Position Record
- 0x10 (DLE is first byte)
- 0x33 (Position record identifier)
- 0x40 (Size of data)
- cpo_pvt_data (See description below)
- one-byte checksum (The addition of bytes between the delimiters should equal 0)
- 0x10 (DLE)
- 0x03 (ETX is last byte)
typedef struct
{
float alt;
float epe;
float eph;
float epv;
int fix;
double gps_tow;
double lat;