gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] RTCM relaying problem


From: José Miguel Gonçalves
Subject: [gpsd-dev] RTCM relaying problem
Date: Mon, 09 Apr 2012 11:05:45 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

Working with a RTCM caster I've noticed that not all RTCM packets that gpsd received were relayed to my GPS receiver, what caused DGPS corrections to be intermittently applied or not applied at all. To fix this I needed to apply the following patch to avoid RTCM packet overlapping:


diff --git a/gpsd.c b/gpsd.c
index d8f229b..abdaca1 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1422,7 +1422,7 @@ static void consume_packets(struct gps_device_t *device)
     }
 #endif /* NETFEED_ENABLE */

-    for (fragments = 0; ; fragments++) {
+ for (fragments = 0; (changed & (RTCM2_SET | RTCM3_SET)) == 0; fragments++) {
        changed = gpsd_poll(device);

        if (changed == ERROR_SET) {


Regards,
José Gonçalves



reply via email to

[Prev in Thread] Current Thread [Next in Thread]