[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] bug fix for GPSDO discovery and querying "gps_time"
From: |
Bastien Auneau |
Subject: |
[Discuss-gnuradio] bug fix for GPSDO discovery and querying "gps_time" |
Date: |
Fri, 5 Aug 2011 18:15:31 +0200 |
Hi
I have experienced some issues regarding querying GPS time (get_mboard_sensor("gps_time"))
and about GPSDO discovery stability
For more details, see previous posts :
Anyway, I made 2 little fixes to gps_ctrl.cpp
I attached the new version to this email
It consist of :
1. waiting after sending string to GPSDO, while discovering GPSDO devices (line 54)
//wait for _send(...) to return
sleep(milliseconds(FIREFLY_STUPID_DELAY_MS));
2. flushing NMEA data from previous sentences (line 159)
//flush data to avoid reading outdated value (because NMEA string generated every second)
while (_recv() != ""){
sleep(milliseconds(10));
}
I found these fixes to be stable on my setup
How can I get it merged into the main branch ?
Also Nick, I tried to play around with FIREFLY_STUPID_DELAY_MS first, but this did not avoid the error I mentioned earlier
Regards
Bastien
gps_ctrl.cpp
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Discuss-gnuradio] bug fix for GPSDO discovery and querying "gps_time",
Bastien Auneau <=