From 772ce4b7f8b6c649655cc7928cfd099fff9c3ade Mon Sep 17 00:00:00 2001 From: Zilog80 Date: Sun, 11 Dec 2016 15:36:45 +0100 Subject: [PATCH] RS41: GPS sat data --- rs41/rs41.txt | 2 +- rs41/rs41ecc.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rs41/rs41.txt b/rs41/rs41.txt index b73b310..9011df3 100644 --- a/rs41/rs41.txt +++ b/rs41/rs41.txt @@ -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) diff --git a/rs41/rs41ecc.c b/rs41/rs41ecc.c index 0d1b62a..7bebccd 100644 --- a/rs41/rs41ecc.c +++ b/rs41/rs41ecc.c @@ -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: ");