kopia lustrzana https://github.com/rs1729/RS
RS41: GPS sat data
rodzic
922cea0681
commit
772ce4b7f8
|
@ -82,7 +82,7 @@ GPS Chip: u-blox UBX-G6010-ST
|
||||||
0x095: 2 byte: GPS week
|
0x095: 2 byte: GPS week
|
||||||
0x097: 4 byte: iTOW
|
0x097: 4 byte: iTOW
|
||||||
0x09B: 12x2 byte: Space Vehicle Number (1 byte) ,
|
0x09B: 12x2 byte: Space Vehicle Number (1 byte) ,
|
||||||
Signal Strength/Quality (1 byte)
|
Signal Quality,Strength (1 byte)
|
||||||
(0x0B3: 2 byte CRC32)
|
(0x0B3: 2 byte CRC32)
|
||||||
|
|
||||||
0x0B5: 7D59 (L=0x59=89 byte)
|
0x0B5: 7D59 (L=0x59=89 byte)
|
||||||
|
|
|
@ -497,7 +497,7 @@ int check_CRC(ui32_t pos, ui32_t pck) {
|
||||||
#define pos_GPS1 0x093
|
#define pos_GPS1 0x093
|
||||||
#define pos_GPSweek 0x095 // 2 byte
|
#define pos_GPSweek 0x095 // 2 byte
|
||||||
#define pos_GPSiTOW 0x097 // 4 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 pck_GPS2 0x7D59 // RXM-RAW (0x02 0x10)
|
||||||
#define pos_GPS2 0x0B5
|
#define pos_GPS2 0x0B5
|
||||||
|
@ -562,7 +562,7 @@ int get_SatData() {
|
||||||
Nfix = frame[pos_numSats];
|
Nfix = frame[pos_numSats];
|
||||||
sAcc = frame[pos_sAcc]/10.0;
|
sAcc = frame[pos_sAcc]/10.0;
|
||||||
pDOP = frame[pos_pDOP]/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: ");
|
fprintf(stdout, "CRC: ");
|
||||||
|
|
Ładowanie…
Reference in New Issue