RS41: GPS sat data

dump
Zilog80 2016-12-11 15:36:45 +01:00
rodzic 922cea0681
commit 772ce4b7f8
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -82,7 +82,7 @@ GPS Chip: u-blox UBX-G6010-ST
0x095: 2 byte: GPS week
0x097: 4 byte: iTOW
0x09B: 12x2 byte: Space Vehicle Number (1 byte) ,
Signal Strength/Quality (1 byte)
Signal Quality,Strength (1 byte)
(0x0B3: 2 byte CRC32)
0x0B5: 7D59 (L=0x59=89 byte)

Wyświetl plik

@ -497,7 +497,7 @@ int check_CRC(ui32_t pos, ui32_t pck) {
#define pos_GPS1 0x093
#define pos_GPSweek 0x095 // 2 byte
#define pos_GPSiTOW 0x097 // 4 byte
#define pos_satsN 0x09B // 12x2 byte
#define pos_satsN 0x09B // 12x2 byte (1: SV, 1: quality,strength)
#define pck_GPS2 0x7D59 // RXM-RAW (0x02 0x10)
#define pos_GPS2 0x0B5
@ -562,7 +562,7 @@ int get_SatData() {
Nfix = frame[pos_numSats];
sAcc = frame[pos_sAcc]/10.0;
pDOP = frame[pos_pDOP]/10.0;
fprintf(stdout, "numSatsFix: %2d Acc: %.1f pDOP: %.1f\n", Nfix, sAcc, pDOP);
fprintf(stdout, "numSatsFix: %2d sAcc: %.1f pDOP: %.1f\n", Nfix, sAcc, pDOP);
fprintf(stdout, "CRC: ");